<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ejs &#187; *NIX</title>
	<atom:link href="http://ejs.seniejitrakai.net/category/my-job/nix/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejs.seniejitrakai.net</link>
	<description>a snaphot of time</description>
	<lastBuildDate>Mon, 09 Jan 2012 22:10:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>pull</title>
		<link>http://ejs.seniejitrakai.net/2011/12/12/pull/</link>
		<comments>http://ejs.seniejitrakai.net/2011/12/12/pull/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 23:35:53 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=221</guid>
		<description><![CDATA[is the only missing keyword, OpenVPN client-to-server config need to work correctly on the client. It took me 3 days to figure this out, a lot of RTFM&#8217;ing and head-banging. Full client config looks this way: tls-client pull remote vpn.xxx.xxx dev tun ifconfig 10.0.232.2 10.0.232.1 cert [full-path-to-client's-CRT-file] key [full-path-to-client's-KEY-file] ca [full-path-to-server's-CA-CRT-file] comp-lzo persist-key persist-tun Server [...]]]></description>
			<content:encoded><![CDATA[<p>is the only missing keyword, OpenVPN client-to-server config need to work correctly on the client.<br />
It took me 3 days to figure this out, a lot of RTFM&#8217;ing and head-banging.</p>
<p>Full client config looks this way:<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5014333663142840";
google_ad_slot = "2728381536";
google_ad_width = 728;
google_ad_height = 90;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
<span id="more-221"></span></p>
<blockquote><p>
tls-client<br />
pull<br />
remote vpn.xxx.xxx<br />
dev tun<br />
ifconfig 10.0.232.2 10.0.232.1<br />
cert [full-path-to-client's-CRT-file]<br />
key [full-path-to-client's-KEY-file]<br />
ca [full-path-to-server's-CA-CRT-file]<br />
comp-lzo<br />
persist-key<br />
persist-tun
</p>
</blockquote>
<p>Server config is similar:</p>
<blockquote><p>
port 1194<br />
proto udp<br />
dev tun<br />
ca ca.crt<br />
cert vpn-server.crt<br />
dh dh1024.pem<br />
server 10.0.232.0 255.255.255.0<br />
ifconfig-pool-persist ipp.txt<br />
push &#8220;route 192.168.232.0 255.255.255.0&#8243;<br />
client-config-dir ccd<br />
push &#8220;dhcp-option DNS 10.0.232.1&#8243;<br />
keepalive 10 120<br />
comp-lzo<br />
max-clients 10<br />
user nobody<br />
group daemon<br />
persist-key<br />
persist-tun<br />
status openvpn-status.log<br />
log-append  openvpn.log<br />
verb 3
</p>
</blockquote>
<p>there&#8217;s nothing and in ccd/client.</p>
<p>The worst thing was, i could find no solution for My-Link-Not-Working on the Internet:<br />
Both ends use &#8216;tun&#8217;, the subnets are set correctly, i could even see packets arrivint to the VPN end on port 1194.<br />
But no traffic on &#8216;tun0&#8242;, no ping, no connection. That was kind of strange. I was already to swith to &#8216;tap&#8217; adapter and proceed to bridging, but fortunatelly i&#8217;ve read what &#8216;pull&#8217; means in OpenVPN &#8211; &#8220;This option must be used on a client which is connecting to a multi-client server. It indicates to OpenVPN that it should accept options pushed by the server, provided they are part of the legal set of pushable options (note that the &#8211;pull option is implied by &#8211;client ).&#8221;</p>
<p>No idea why, but:<br />
 routes were correctly set on both ends;<br />
 the firewall was not an issue both on Linux and windows sides;<br />
 the magical &#8220;pull&#8221; made the work done.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2011/12/12/pull/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPsec to Sonicwall appliance</title>
		<link>http://ejs.seniejitrakai.net/2011/12/06/ipsec-to-sonicwall-appliance/</link>
		<comments>http://ejs.seniejitrakai.net/2011/12/06/ipsec-to-sonicwall-appliance/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 21:54:37 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[IPsec]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=222</guid>
		<description><![CDATA[Just a note: when you need to establish IPsec connection to Sonicwall NSA 3500 firewall, here&#8217;s working config: Linux side: /etc/ipsec.conf : &#8230; include /etc/ipsec.d/*.conf Not sure if &#8216;agressive mode&#8217; is A Good Idea, but it Just Works /etc/ipsec.d/partner.conf : conn partner type=tunnel left=$YOUR_PUBLIC_IP leftid=$YOUR_PUBLIC_IP leftsubnet=$YOUR_PRIVATE_SUBNET/WITH_MASK right=$PARTNER&#8217;S_PUBLIC_IP rightid=$PARTNER&#8217;S_PUBLIC_IP rightsubnet=$PARTHENR&#8217;S_PRIVATE_SUBNET/WITH_MASK rightnexthop=$PARTHENR&#8217;S_ROUTER_IP keyingtries=0 pfs=yes aggrmode=yes auto=add auth=esp [...]]]></description>
			<content:encoded><![CDATA[<p>Just a note:<br />
when you need to establish IPsec connection to Sonicwall NSA 3500 firewall, here&#8217;s working config:<br />
Linux side:<br />
/etc/ipsec.conf :</p>
<blockquote><p>
&#8230;<br />
include /etc/ipsec.d/*.conf
</p></blockquote>
<p><span id="more-222"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-5014333663142840";
google_ad_slot = "8842048914";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
Not sure if &#8216;agressive mode&#8217; is A Good Idea, but it Just Works<br />
/etc/ipsec.d/partner.conf :</p>
<blockquote><p>conn partner<br />
        type=tunnel<br />
        left=$YOUR_PUBLIC_IP<br />
        leftid=$YOUR_PUBLIC_IP<br />
        leftsubnet=$YOUR_PRIVATE_SUBNET/WITH_MASK<br />
        right=$PARTNER&#8217;S_PUBLIC_IP<br />
        rightid=$PARTNER&#8217;S_PUBLIC_IP<br />
        rightsubnet=$PARTHENR&#8217;S_PRIVATE_SUBNET/WITH_MASK<br />
        rightnexthop=$PARTHENR&#8217;S_ROUTER_IP<br />
        keyingtries=0<br />
        pfs=yes<br />
        aggrmode=yes<br />
        auto=add<br />
        auth=esp<br />
        esp=3DES-SHA1<br />
        ike=3DES-SHA1<br />
        authby=secret
</p></blockquote>
<p>/etc/ipsec.secrets</p>
<blockquote><p>
$YOUR_PUBLIC_IP $PARTNER&#8217;S_PUBLIC_IP : PSK &#8220;verySecretPreSharedKey&#8221;
</p></blockquote>
<p>If it&#8217;s the very first time you are adding the connection, use</p>
<blockquote><p>
ipsec auto &#8211;add partner
</p></blockquote>
<p>If you are editing the existing connection, use</p>
<blockquote><p>
ipsec auto &#8211;replace partner
</p></blockquote>
<p>Now, restart IPsec and initiate connection</p>
<blockquote><p>
/etc/init.d/ipsec start<br />
ipsec whack &#8211;name partner &#8211;initiate
</p></blockquote>
<p>Ah yes, routing:</p>
<blockquote><p>
ip route add $PARTHENR&#8217;S_PRIVATE_SUBNET/WITH_MASK via $YOUR_PUBLIC_IP src $YOUR_PRIVATE_IP
</p></blockquote>
<p>SonicWall should be set the same way:</p>
<blockquote><p>
Policy: site-to-site;<br />
Authentication Method: IKE using Preshared Secret<br />
IPSec Primary Gateway Name or Address: $YOUR_PUBLIC_IP<br />
Local IKE ID: IP Address, $PARTNER&#8217;S_PUBLIC_IP<br />
Peer IKE ID: IP Address, $YOUR_PUBLIC_IP</p>
<p>IKE (Phase 1) proposal:<br />
Excahnge: Aggressive mode<br />
Encryption: 3DES<br />
Authentication: SHA1<br />
Life Time (seconds) 28800</p>
<p>IPsec (Phase 2) Proposal:<br />
Protocol: ESP<br />
Encryption: 3DES<br />
Authentication: SHA1
</p></blockquote>
<p>Again, not sure if &#8216;Aggressive mode&#8217; is A Good Idea.</p>
<p>References:<br />
<a href="http://www.sonicwall.com/us/products/NSA_3500.html" title="SonicWall NSA 3500" target="_blank">SonicWall NSA 3500</a><br />
<a href="http://www.ghacks.net/2010/03/03/creating-a-vpn-tunnel-between-ubuntu-and-sonicwall/" title="Linux to Sonicwall" target="_blank">Linux to Sonicwall</a> and <a href="http://www.linux-faqs.info/vpn/establish-a-vpn-connection-between-sonicwall-and-linux" title="Linux to Sonicwall" target="_blank">also here</a><br />
<a href="http://www.pelagodesign.com/blog/2009/05/18/ubuntu-linux-how-to-setup-a-vpn-connection-to-a-sonicwall-router-using-openswan-and-pre-shared-keys-psk/" title="Linux to SonicWall TZ190" target="_blank">Linux to SonicWall TZ190</a><br />
<a href="http://linux.die.net/man/5/ipsec.conf" title="ipsec.conf (5)" target="_blank">ipsec.conf (5)</a><br />
<a href="http://www.sherman.ca/archives/2004/11/21/linux-26-ipsec-vpns/" title="IPsec VPN routing" target="_blank">IPsec VPN routing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2011/12/06/ipsec-to-sonicwall-appliance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get rid of removed packages in Debian</title>
		<link>http://ejs.seniejitrakai.net/2011/03/04/get-rid-of-removed-packages-in-debian/</link>
		<comments>http://ejs.seniejitrakai.net/2011/03/04/get-rid-of-removed-packages-in-debian/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 11:44:52 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=198</guid>
		<description><![CDATA[Every time package is removed via `apt-get remove`, a tiny piece of its configuration can be kept in your system. If you ever need to reinstall the package, this information can be re-used. These packages has status &#8216;rc&#8217; in the output of `dpkg -l`. But if you want to keep your system tidy and clean, [...]]]></description>
			<content:encoded><![CDATA[<p>Every time package is removed via `apt-get remove`, a tiny piece of its configuration can be kept in your system. If you ever need to reinstall the package, this information can be re-used. These packages has status &#8216;rc&#8217; in the output of `dpkg -l`. But if you want to keep your system tidy and clean, you may want them to be removed.</p>
<p>The miraculous command is</p>
<blockquote><p>dpkg -l | egrep ^r | cut -d &#8216; &#8216; -f 3 | xargs apt-get remove &#8211;purge -y</p></blockquote>
<p><span id="more-198"></span></p>
<p>What it does?</p>
<blockquote><p>dpkg -l</p></blockquote>
<p>list all packages</p>
<blockquote><p>egrep ^r</p></blockquote>
<p>print only those matching status &#8216;r*&#8217;. Package status is the first column, so add &#8216;^&#8217; to match only the lines, beginning with &#8216;r&#8217; symbol.</p>
<blockquote><p>cut -d &#8216; &#8216; -f 3</p></blockquote>
<p>return selected field only. Usually I add field separator symbol with &#8216;-d&#8217; option and specify field number with &#8216;-f&#8217;</p>
<blockquote><p>xargs apt-get remove &#8211;purge -y</p></blockquote>
<p>xargs runs the specified command, appending input from STDIN (you can alter this behaviour vith options). In this case, i&#8217;m executing &#8216;apt-get remove &#8211;purge&#8217; command. &#8216;-y&#8217; swich means &#8221;assume &#8216;yes&#8217; to all questions&#8221; and is needed for apt-get to confirm the removal of packages.</p>
<p>The rest is the magic of pipes.</p>
<p>&nbsp;</p>
<p>Why do i write this?</p>
<p>A strange messages were found in the syslog:</p>
<pre>Errors when running cron:
    grandchild #2047 failed with exit status 1: 1 Time(s)
    grandchild #2205 failed with exit status 1: 1 Time(s)
    grandchild #2342 failed with exit status 1: 1 Time(s)
    grandchild #2658 failed with exit status 1: 1 Time(s)
    grandchild #2878 failed with exit status 1: 1 Time(s)
    grandchild #2972 failed with exit status 1: 1 Time(s)
    grandchild #30732 failed with exit status 1: 1 Time(s)
    grandchild #30832 failed with exit status 1: 1 Time(s)
    grandchild #30934 failed with exit status 1: 1 Time(s)
    grandchild #3094 failed with exit status 1: 1 Time(s)
    grandchild #31290 failed with exit status 1: 1 Time(s)
    grandchild #32395 failed with exit status 1: 1 Time(s)
    grandchild #3262 failed with exit status 1: 1 Time(s)
</pre>
<p>In-deep analysis revealed &#8216;/etc/cron.d/greylistclean&#8217; from package &#8216;sa-exim&#8217;. I don&#8217;t use exim and it was replaced by postfix just after installing the system. The file mentioned did not show any signs of miss-formatting until a new version of cron daemon was installed via &#8216;apt-get dist-upgrade&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2011/03/04/get-rid-of-removed-packages-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running VirtualBox guests from physical drive</title>
		<link>http://ejs.seniejitrakai.net/2010/11/01/running-virtualbox-guests-from-physical-drive/</link>
		<comments>http://ejs.seniejitrakai.net/2010/11/01/running-virtualbox-guests-from-physical-drive/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 22:38:28 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[My job]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=175</guid>
		<description><![CDATA[Dual boot is perfect solution in most cases. On the other hand, if you need to peep into the other system&#8217;s files, you need to re-boot. Or use sometimes not so stable filesystem utilities. Running fully virtualized OS, using eg Xen as supervisor, creates additional load an hardware, maybe not too big when running multiple [...]]]></description>
			<content:encoded><![CDATA[<p>Dual boot is perfect solution in most cases.</p>
<p>On the other hand, if you need to peep into the other system&#8217;s files, you need to re-boot. Or use sometimes not so stable filesystem utilities.<br />
Running fully virtualized OS, using eg Xen as supervisor, creates additional load an hardware, maybe not too big when running multiple OS&#8217;es on the pretty new server, but significant, if it is a laptop. And yes, you NEED to keep data in-sync between virtual and real OS.<span id="more-175"></span><br />
VMware users, please don&#8217;t read any more. Yes, you can do it from pre-historic times.</p>
<p>You&#8217;ve been warned!</p>
<p>As for VirtualBox, it is possible to add physical drive or disk partition to your VM setup, although no GUI tools exists to accomplish this.<br />
Every step is documented in VirtualBox User&#8217;s Guide, but really, who read these guides?<br />
So , excerpts from <a href="http://www.virtualbox.org/manual/ch09.html#rawdisk">The Guide, chapter 9</a>:</p>
<p><strong>Step 1:</strong> you need to know the partition layout of the drive.</p>
<p><code>VBoxManage internalcommands listpartitions -rawdisk [physical_drive]</code></p>
<p>Substitute [physical_drive] for <strong>/dev/sd[a-z]</strong> if you live in Linux, <strong>\\.\PhysicalDrive[0..n]</strong> living in windows or <strong>/dev/drive[1..n]</strong> living in OS X.<br />
Note the numbers. Linux usually has partition type 0&#215;83, windows &#8211; 0&#215;07. Not sure about Mac. You need to remember the physical partition you want to use in guest OS.</p>
<p><strong>Step 2:</strong> export it to a file. It&#8217;s as easy as 1-2-3. And no, not the whole partition, but only some information about the layout of partitions will be saved:</p>
<p><code>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda -partitions [partition_number] -register</code></p>
<p><strong>/path/to/file.vmdk</strong> must be absolute path. Substitute <strong>[partition_number]</strong> with the the partition from step 1. Using &#8220;-register&#8221; automagically registers the image in list of registered images of the VirtualBox.</p>
<p>&nbsp;</p>
<p><strong>Step 3:</strong> attach the newly created file to a guest and run it.</p>
<p><strong>Some notes:</strong> it&#8217;s possible to use entire physical disk for VirtualBox:<br />
<code>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk [physical_drive]</code><br />
Although it is possible, you should ever never launch the currently running system in VirtualBox. You&#8217;ve been warned.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2010/11/01/running-virtualbox-guests-from-physical-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Localised fonts</title>
		<link>http://ejs.seniejitrakai.net/2010/04/20/localised-fonts/</link>
		<comments>http://ejs.seniejitrakai.net/2010/04/20/localised-fonts/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 14:17:20 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[My job]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=155</guid>
		<description><![CDATA[The very first try on &#8220;Flux-the-Architect&#8220;. Added Ą,Č,Ę,Ė,Į,Š,Ų,Ū,Ž glyphs and some minor symbols (°, ±, ², ³). The font is OpenType in TrueType encoding. OpenType fonts in PS encoding does not work in AutoCAD.]]></description>
			<content:encoded><![CDATA[<p>The very first try on &#8220;<a href="http://ejs.seniejitrakai.net/wp-content/uploads/FluxArchitect-Regular-TT.otf">Flux-the-Architect</a>&#8220;. Added Ą,Č,Ę,Ė,Į,Š,Ų,Ū,Ž glyphs and some minor symbols (°, ±, ², ³). The font is OpenType in TrueType encoding. OpenType fonts in PS encoding does not work in AutoCAD.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2010/04/20/localised-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubles in Virtual World</title>
		<link>http://ejs.seniejitrakai.net/2010/02/24/troubles-in-virtual-world/</link>
		<comments>http://ejs.seniejitrakai.net/2010/02/24/troubles-in-virtual-world/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 12:10:36 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=143</guid>
		<description><![CDATA[For testing OpenOffice.org i&#8217;ve set up a VirtualBox, running Debian/testing in x86and amd64 architectures. In some cases, mouse integration does not work correctly. Although mouse works perfectly in the Guest window, it&#8217;s impossible to move it out without pressing Host key (left Ctrl in MS Windows). VirtualBox guest additions are installed, guest resizing and shared [...]]]></description>
			<content:encoded><![CDATA[<p>For testing OpenOffice.org i&#8217;ve set up a VirtualBox, running Debian/testing in x86and amd64 architectures.<br />
In some cases, mouse integration does not work correctly. Although mouse works perfectly in the  Guest window, it&#8217;s impossible to move it out without pressing Host key (left Ctrl in MS Windows).<br />
VirtualBox guest additions are installed, guest resizing and shared folders works perfectly.<br />
The solution was found in <a href="http://forums.virtualbox.org/viewtopic.php?t=10800">VirtualBox forums</a> :<br />
/etc/X11/xorg.conf must contain </p>
<blockquote><p>Section &#8220;InputDevice&#8221;<br />
   Identifier   &#8220;Configured Mouse&#8221;<br />
   Driver       &#8220;vboxmouse&#8221;<br />
   Option       &#8220;CorePointer&#8221;<br />
EndSection</p></blockquote>
<p>note two lines: <strong>vboxmouse</strong> tells X.org to use mouse driver from VirtualBox guest additions, and <strong>CorePointer</strong> instructs to use this pointer as primary. Without <em>CorePointer</em> line the vboxmouse driver is used, but it&#8217;s still impossible to move it outside guest&#8217;s window.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2010/02/24/troubles-in-virtual-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to start multisite Gallery2 on Debian</title>
		<link>http://ejs.seniejitrakai.net/2009/07/11/how-to-start-multisite-gallery2-on-debian/</link>
		<comments>http://ejs.seniejitrakai.net/2009/07/11/how-to-start-multisite-gallery2-on-debian/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:35:00 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gallery2]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=45</guid>
		<description><![CDATA[I had a little disc and database crash, so the site was not updated recently. Well, WordPress was updated easily, but i had problems with Gallery2. I need a multisite deployment of Gallery2. Although it is supported from the installer, some important steps are missing. In order multisite Gallery2 to work, you will need to [...]]]></description>
			<content:encoded><![CDATA[<p>I had a little disc and database crash, so the  site was not updated recently.</p>
<p>Well, WordPress was updated easily, but i had problems with Gallery2.</p>
<p>I need a multisite deployment of Gallery2. Although it is supported from the installer, some important steps are missing.</p>
<p>In order multisite Gallery2 to work, you will need to add some symlinks to every deployment of the Gallery2:</p>
<p><span id="more-45"></span></p>
<ul>
<li> lib -&gt; /usr/share/gallery2/lib/</li>
<p>The directory is providing some scripts amongst all, so without it you will lack some functionality, like enabling themes will not work.</p>
<li> modules -&gt; /usr/share/gallery2/modules</li>
<li> themes -&gt; /usr/share/gallery2/themes</li>
<p>The themes directory is providing CSS file, so without this your gallery will look &#8220;flat&#8221;.</ul>
<p>Also, you can try to use &#8220;php_admin_flag safe_mode Off&#8221; in the Apache&#8217;s VirtualHost description, in the case PHP safe mode is turned on globally.</p>
<p>And yes, beware: do not ever mix web directory and data directory: the content of web directory is erased during install.</p>
<p><code># date<br />
Sat Jul 11 10:34:07 EEST 2009<br />
# dpkg -l |egrep gallery2<br />
ii  gallery2                          2.3-1                       web-based photo album written in PHP<br />
</code></p>
<p> The fresh issue: after fresh install (Gallery&#8230; deb), no one is able to login. The solution is explained <a href="http://gallery.menalto.com/node/76322">here</a> &#8211; you should set <code>$gallery->setConfig('baseUri', '');</code> in &#8216;config.php&#8217;.</p>
<p> Again, having both left hands, i was unable to start multisite version of Gallery2, using install scripts. What i had to change was:</p>
<ol>
<li>remove &#8216;lib/&#8217;</li>
<li>symlink &#8216;lib/&#8217; , &#8216;modules/&#8217; , &#8216;themes/&#8217; from &#8216;/usr/share/gallery2&#8242; to site root</li>
<li>symlink or copy and alter &#8216;images/&#8217; from &#8216;/usr/share/gallery2&#8242; to site root</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/07/11/how-to-start-multisite-gallery2-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bnx2: Can&#8217;t load firmware file bnx2-06-4.0.5.fw</title>
		<link>http://ejs.seniejitrakai.net/2009/07/06/bnx2-cant-load-firmware-file-bnx2-06-405fw/</link>
		<comments>http://ejs.seniejitrakai.net/2009/07/06/bnx2-cant-load-firmware-file-bnx2-06-405fw/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:02:58 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=112</guid>
		<description><![CDATA[After migration from 2.6.18-6-amd64, a newly installed kernel 2.6.26-2-amd64 failed to load: [ 2.871916] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.7.5 (April 29, 2008) ... [ 3.631838] firmware: requesting bnx2-06-4.0.5.fw ... [ 105.599417] bnx2: Can't load firmware file bnx2-06-4.0.5.fw ... [ 105.599563] bnx2: probe of 0000:03:00.0 failed with error -2 ... [ 106.791394] firmware: [...]]]></description>
			<content:encoded><![CDATA[<p>After migration from 2.6.18-6-amd64, a newly installed kernel 2.6.26-2-amd64 failed to load:<br />
<code><br />
[    2.871916] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.7.5 (April 29, 2008)<br />
...<br />
[    3.631838] firmware: requesting bnx2-06-4.0.5.fw<br />
<span id="more-112"></span>...<br />
[  105.599417] bnx2: Can't load firmware file bnx2-06-4.0.5.fw<br />
...<br />
[  105.599563] bnx2: probe of 0000:03:00.0 failed with error -2<br />
...<br />
[  106.791394] firmware: requesting bnx2-06-4.0.5.fw<br />
[  203.699607] bnx2: Can't load firmware file bnx2-06-4.0.5.fw<br />
...<br />
[  203.699742] bnx2: probe of 0000:05:00.0 failed with error -2<br />
</code></p>
<p>First of all, firmware is in non-free branch, so /etc/apt/sources.list must contain &#8220;non-free&#8221; repository and:<br />
install firmware-bnx2 package: </p>
<blockquote><p>apt-get install firmware-bnx2</p></blockquote>
<p>;</p>
<p>double check the files in <code>/lib/firmware/</code>;</p>
<p><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494936">Some people</a> report it&#8217;s still impossible to load firmware from initrd, so you may wish to remove bnx2 line from &#8216;/etc/initramfs-tools/modules&#8217;;</p>
<p>&#8220;firmware-bnx2&#8243; already has initrd update scripts, but you may want to re-check the created image.<br />
You can extract the initrd image using </p>
<blockquote><p>gzip -dc /boot/initrd.img-[]kernel version-arch] | cpio -id</p></blockquote>
<p>Cross your fingers;<br />
<code>telinit 6</code>;<br />
It just worked for me:  </p>
<blockquote><p># uname -a<br />
Linux &#8230; 2.6.26-2-amd64 #1 SMP &#8230; x86_64 GNU/Linux</p></blockquote>
<p>Still got no ping? Login to console and <code>rmmod bnx2 &#038;&#038; modprobe bnx2</code> <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/07/06/bnx2-cant-load-firmware-file-bnx2-06-405fw/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Make Samba and CUPS in Debian friends again</title>
		<link>http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/</link>
		<comments>http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 18:28:20 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[CUPS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/</guid>
		<description><![CDATA[I&#8217;ve seen a lot of these entries in logfiles recently: [] printing/print_cups.c:cups_job_submit(656) Unable to print file to - client-error-bad-request And the printing is stopped, of course. The solution is simple: LANG=en_US.UTF-8 /etc/init.d/samba restart In short: /var/log/cups/error_log shows a lot of E [] Unsupported character set "iso-8859-1"! CUPS requires UTF-8. In the case of default login [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a lot of these entries in logfiles recently:</p>
<p><code>[<date and time>] printing/print_cups.c:cups_job_submit(656)<br />
  Unable to print file to
<printer name> - client-error-bad-request<br />
</code></p>
<p>And the printing is stopped, of course.</p>
<p>The <a href="http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/08e29c72aff5ea44/83350881376f6bc1?lnk=raot">solution</a> is simple:</p>
<p><code> LANG=en_US.UTF-8 /etc/init.d/samba restart</code></p>
<p>In short:<br />
<em>/var/log/cups/error_log</em> shows a lot of </p>
<p><code>E [<date>] Unsupported character set "iso-8859-1"!</code></p>
<p>CUPS requires UTF-8.<br />
In the case of default login in Debian, the console IS in UTF-8, but is not if you have customized it and use `su` for administrative tasks.</p>
<p>C&#8217;ia.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubles in remote server management</title>
		<link>http://ejs.seniejitrakai.net/2007/11/19/troubles-in-remote-server-management/</link>
		<comments>http://ejs.seniejitrakai.net/2007/11/19/troubles-in-remote-server-management/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 16:00:48 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=48</guid>
		<description><![CDATA[Had a severe issue with Samba server recently: it refused to serve after some undefined amount of time. It could work for a days perfectly or could be completely unreachable in several minutes after restart. Logs were useless, even in the highest possible debug level. The problem was found accidentally. I have some information in [...]]]></description>
			<content:encoded><![CDATA[<p>Had a severe issue with Samba server recently: it refused to serve after some undefined amount of time. It could work for a days perfectly or could be completely unreachable in several minutes after restart. Logs were useless, even in the highest possible debug level.</p>
<p><span id="more-48"></span></p>
<p>The problem was found accidentally. I have some information in national language and I usually edit /etc/samba/smb.conf from X environment or msWindows, using Unicode-aware editors. But at some time share comments in config file were edited using pico in ISO-8859-1 terminal. Pico is perfect editor for me (i hate complexity of vi or emacs) , but in this case the combination of wront terminal and ANSI-type editor was lethal. The UTF-8 strings were mangled and the configuraton was wrong (althow `testparm` showed it&#8217;s OK).<br />
So, don&#8217;t do this at work <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2007/11/19/troubles-in-remote-server-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

