<?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>Tue, 15 Jun 2010 23:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<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>0</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>
		<item>
		<title>PHProject in Unicode</title>
		<link>http://ejs.seniejitrakai.net/2007/06/28/phproject-in-unicode/</link>
		<comments>http://ejs.seniejitrakai.net/2007/06/28/phproject-in-unicode/#comments</comments>
		<pubDate>Thu, 28 Jun 2007 14:05:37 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=46</guid>
		<description><![CDATA[The final migration stage from file-based Ganntproject to Web-based solution just began. I&#8217;ve set up PHProject in the office site. PHP5, Apache2, Mysql4 and Debian is enough. The very first problem was Unicode support. Seems like PHProject was developed keeping MySQL3 in mind, althow ir works with a bunch of database backends, like Oracle, PostgreSQL, [...]]]></description>
			<content:encoded><![CDATA[<p>The final migration stage from file-based Ganntproject to Web-based solution just began. I&#8217;ve set up  PHProject in the office site. PHP5, Apache2, Mysql4 and Debian is enough.</p>
<p>The very first problem was Unicode support. Seems like PHProject was developed keeping MySQL3 in mind, althow ir works with a bunch of database backends, like Oracle, PostgreSQL, DB2, MSSQL.</p>
<p>So, to use UTF8 encoding in MySQL, add the following into lib/db/mysql.inc.php:</p>
<p><span id="more-46"></span></p>
<blockquote><p> $_database_ressource_identifier = mysql_connect($db_host, $db_user, $db_pass) or mysql_error();<br />
+++   mysql_query(&#8220;SET NAMES &#8216;utf8&#8242;&#8221;);<br />
+++   mysql_query(&#8220;SET CHARACTER_SET &#8216;utf8&#8242;&#8221;);<br />
$_database_connection = mysql_select_db($db_name);</p>
</blockquote>
<p>The second task is to convert the whole database, using character set &#8216;latin1&#8242; and collation &#8216;latin1_swedish_ci&#8217; to UTF-8. There are ~47 tables in the database, so manual conversion is a pain in the ass. My ass. You can use the SQL script for PHProject-5.2.2.</p>
<p>And the third task is to convert localization files from 8-bit to UTF-8. I&#8217;ve used <em>iconv</em>:</p>
<p>&gt; &#8216;<strong>iconv -f windows-1257 -t utf8 lang/lt.inc.php.old &gt; lang/lt.inc.php</strong>&#8216;</p>
<p>So, here are the files:</p>
<p><a href="http://www.urbannatives.net/localtreechild/drupal/drupal_code/script_converting_your_mysql_database_collation_utf8_and_utf8_general_ci_and_tabl" title="The little PHP script" target="_blank">A little PHP script that will convert database and tables to UTF-8</a>. However, i&#8217;ve found it too late.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2007/06/28/phproject-in-unicode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netgear WG511 Wi-Fi card in Debian</title>
		<link>http://ejs.seniejitrakai.net/2007/02/07/netgear-wg511-wi-fi-card-in-debian/</link>
		<comments>http://ejs.seniejitrakai.net/2007/02/07/netgear-wg511-wi-fi-card-in-debian/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 21:53:29 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Netgear]]></category>
		<category><![CDATA[WG511]]></category>
		<category><![CDATA[WiFi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=44</guid>
		<description><![CDATA[Long time ago i&#8217;ve bought Netgear WG511 PCMCIA WiFi card. It&#8217;s version 2, and is supported by prism54 module. the basic info is in jkx page, but at least 3 years have passed In order to run in Linux, you need: PCMCIA bus modules &#8211; pcmcia, pcmci_core and yenta_socket in my case; prism54 module to [...]]]></description>
			<content:encoded><![CDATA[<p>Long time ago i&#8217;ve bought Netgear WG511 PCMCIA WiFi card. It&#8217;s version 2, and is supported by prism54 module. the basic info is in <a href="http://www.larsen-b.com/Article/73.html">jkx page</a>, but at least 3 years have passed <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In order to run in Linux, you need:<br /><span id="more-44"></span></p>
<ol>
<li>PCMCIA bus modules &#8211; pcmcia, pcmci_core and yenta_socket in my case;</li>
<li> prism54 module to talk to the card;</li>
<li> firmware_class module to load the firmware</li>
<li>actual firmware</li>
<li>wireles-tools package to manage link</li>
</ol>
<p>The WG511 uses isl3890 module, which was available <a href="http://prism54.org/firmware/isl3890">here</a>, but due to copyright restrictions, it&#8217;s not there any more. The backup is <a href="http://prism54.org/firmware/">prism54.org firmware page</a> or <a href="1.0.4.3.arm">my local backup</a>. Netgear WG511 uses 1.0.4.3.arm firmware. Just be sure to place it into &#8216;/usr/lib/hotplug/firmware&#8217; in Debian and symlink or rename it to &#8216;isl3890&#8242;.</p>
<p>What you need more, is to edit &#8216;/etc/network/interfaces&#8217; file and add some lines about the WiFi card:</p>
<p>My WiFi card is eth2, as eth0 goes for embedded wired network and eth1 is for IEEE1384/FireWire link:<br />
&#8230;<br />
allow-hotplug eth2<br />
iface eth2 inet dhcp<br />
      wireless-essid your_APs_ssid_here<br />
      wireless-mode managed<br />
      wireless-key1 ActualKeyMustBeEnteredHere<br />
      wireless-defaultkey 1</p>
<p>Voila. Plug-in the card, and run /sbin/iwconfig.</p>
<blockquote><p>$ /sbin/iwconfig<br />
lo        no wireless extensions.</p>
<p>eth0      no wireless extensions.</p>
<p>eth1      no wireless extensions.</p>
<p>sit0      no wireless extensions.</p>
<p>eth2      IEEE 802.11b/g  ESSID:&#8221;your_APs_ssid_here&#8221;<br />
          Mode:Managed  Frequency:2.467 GHz  Access Point: 00:00:00:00:00:00<br />
          Bit Rate:54 Mb/s   Tx-Power=31 dBm   Sensitivity=20/200<br />
          Retry min limit:8   RTS thr:2347 B   Fragment thr:2346 B<br />
          Link Quality:19/0  Signal level:-50 dBm  Noise level:-40 dBm<br />
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br />
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
</p>
</blockquote>
<p>The problem is when you plug-in the WiFi card and your wired network stays connected. In this case you must configure routing.<br />
Or you can disable wired link with &#8216;sudo ifdown eth0&#8242;.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2007/02/07/netgear-wg511-wi-fi-card-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More complicated KDM and Xorg configuration on my laptop</title>
		<link>http://ejs.seniejitrakai.net/2007/01/10/more-complicated-xorg-configuration-on-my-laptop/</link>
		<comments>http://ejs.seniejitrakai.net/2007/01/10/more-complicated-xorg-configuration-on-my-laptop/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 22:08:09 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Cinerella]]></category>
		<category><![CDATA[virtual desktop]]></category>
		<category><![CDATA[XOrg]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=40</guid>
		<description><![CDATA[The 1024&#215;768 screen of my laptop from ESC is quite small. I got it when I had to change some preferences in Cinelerra. The confirmation buttons were far below the edge of the screen. Well, manually editing files in ~/.bcast is a bit time-consuming, so i really needed these buttons There were two ways to [...]]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" target="_new" href="http://ejs.seniejitrakai.net/wp-content/uploads/desktop.png" title="the initial size of the desktop"><img class="right" src="http://ejs.seniejitrakai.net/wp-content/uploads/desktop.thumbnail.png" alt="the initial size of the desktop" /></a></p>
<p>The 1024&#215;768 screen of my laptop from ESC is quite small. I got it when I had to change some preferences in Cinelerra. The confirmation buttons were far below the edge of the screen.</p>
<p>
Well, manually editing files in ~/.bcast is a bit time-consuming, so i really needed these buttons <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>There were two ways to press the button: either use bigger, so called &#8216;virtual&#8217; desktop, or try to run two X serers with different layouts.<br />
Using virtual desktops is more simple. Just add &#8220;Virtual x y&#8221; lines to /etc/X11/xorg.conf and you are done. The minor problem is that when the window gets maximized, it expand over the whole virtual desktop, not just the visible part of it.<br />
The other way is more interesting. I should mention I prefer KDM as desktop manager.<br />
So, good old Goooooogle showed me the way: <a href="//http://www.oclug.on.ca/archives/oclug/2004-August/040531.html">[1]</a> and <a href="http://www.phildev.net/linux/x.html">[2]</a>. The first one is quite interesting, but seems like kdm from KDE 3.5.5 is not reading Xservers file at all.<br />
The temporary workaround is to use the ugly XDM as desktop manager. <span id="more-40"></span></p>
<p>So, the XDM solution is:<br />
edit /etc/X11/xdm/Xservers and choose one of the methods proposed:</p>
<blockquote><p>
# three ways: either use &#8216;-layout&#8217; option and specify ServerLayout:<br />
:0 local /usr/bin/X :0 vt7 -nolisten tcp -layout Default<br />
:1 local /usr/bin/X :1 vt8 -nolisten tcp -layout Huge</p>
<p># or use separate xorg.conf file, like this<br />
#:0 local /usr/bin/X :0 vt7 -nolisten tcp -config /etc/X11/xorg.conf<br />
#:1 local /usr/bin/X :1 vt8 -nolisten tcp -config /etc/X11/xorg.virtual.conf</p>
<p># or use &#8216;-screen&#8217; option<br />
#:0 local /usr/bin/X :0 vt7 -nolisten tcp -screen Default\ Screen<br />
#:1 local /usr/bin/X :1 vt8 -nolisten tcp -screen Huge\ Screen
</p>
</blockquote>
<p>and either create xorg.virtual.conf or edit xorg.conf accordingly:</p>
<blockquote><p>
&#8230;<br />
Section &#8220;Screen&#8221;<br />
        Identifier      &#8220;Default Screen&#8221;<br />
        Device          &#8220;Generic Video Card&#8221;<br />
        Monitor         &#8220;Generic Monitor&#8221;<br />
        DefaultDepth    24<br />
        &#8230;<br />
        SubSection &#8220;Display&#8221;<br />
                Depth           24<br />
                Modes            &#8220;1024&#215;768&#8243; &#8220;1280&#215;1024&#8243; &#8220;1600&#215;1200&#8243;<br />
        EndSubSection<br />
EndSection</p>
<p>Section &#8220;Screen&#8221;<br />
        Identifier      &#8220;Huge Screen&#8221;<br />
        Device          &#8220;Generic Video Card&#8221;<br />
        Monitor         &#8220;Generic Monitor&#8221;<br />
        DefaultDepth    24<br />
        &#8230;<br />
        SubSection &#8220;Display&#8221;<br />
                Depth           24<br />
                Modes            &#8220;1024&#215;768&#8243; &#8220;1280&#215;1024&#8243; &#8220;1600&#215;1200&#8243;<br />
                Virtual         2400 1600<br />
        EndSubSection<br />
EndSection</p>
<p>Section &#8220;ServerLayout&#8221;<br />
        Identifier      &#8220;Default&#8221;<br />
        Screen          &#8220;Default Screen&#8221;<br />
        &#8230;<br />
EndSection</p>
<p>Section &#8220;ServerLayout&#8221;<br />
        Identifier      &#8220;Huge&#8221;<br />
        Screen          &#8220;Huge Screen&#8221;<br />
    &#8230;<br />
EndSection
</p>
</blockquote>
<p>stop KDM, start XDM and you&#8217;re done.</p>
<p><a class="imagelink" href="http://ejs.seniejitrakai.net/wp-content/uploads/huge_desktop.png" target="_new" alt="my current desktop on vt8" > <img src="http://ejs.seniejitrakai.net/wp-content/uploads/huge_desktop.thumbnail.png" alt="my current desktop on vt8" /></a></p>
<p>And now, the most interesting part (for me): KDM configuration.</p>
<p>I used single xorg.conf file with multiple ServerLayout&#8217;s</p>
<p>/etc/kde3/kdm/kdmrc:</p>
<blockquote><p>
# KDM master configuration file<br />
&#8230;<br />
[General]<br />
&#8230;<br />
# List of permanent displays. Displays with a hostname are foreign. A display<br />
# class may be specified separated by an underscore.<br />
# Default is &#8220;:0&#8243;<br />
StaticServers=:0,:1<br />
# List of on-demand displays. See StaticServers for syntax.<br />
# Default is &#8220;&#8221;<br />
ReserveServers=:2,:3<br />
# VTs to allocate to X-servers. A negative number means that the VT will be<br />
# used only if it is free. If all VTs in this list are used up, the next free<br />
# one greater than the last one in this list will be allocated.<br />
# Default is &#8220;&#8221;<br />
ServerVTs=-7,-8,-9,-10<br />
# TTYs (without /dev/) to monitor for activity while in console mode.<br />
# Default is &#8220;&#8221;<br />
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6<br />
&#8230;</p>
<p># Greeter config for all displays<br />
[X-*-Greeter]<br />
&#8230;<br />
LogoArea=Clock<br />
&#8230;<br />
# Default is &#8220;Welcome to Debian at %n&#8221;<br />
GreetString=Welcome to Debian at %n %d<br />
&#8230;</p>
<p># Core config for 1st local display<br />
[X-:0-Core]<br />
# The VT the X-server should run on; auto-assign if zero, don&#8217;t assign if -1.<br />
# Better leave it zero and use ServerVTs.<br />
# Default is 0<br />
#ServerVT=7<br />
&#8230;<br />
ServerArgsLocal=-nolisten tcp -layout Default</p>
<p># Core config for local displays<br />
[X-:1-Core]<br />
ServerAttempts=2<br />
ServerVT=8<br />
# The command line to start the X-server, without display number and VT spec.<br />
# This string is subject to word splitting.<br />
# Default is &#8220;/usr/bin/X -br&#8221;<br />
ServerCmd=/usr/bin/X :1 -br<br />
# Additional arguments for the X-servers for local sessions.<br />
# This string is subject to word splitting.<br />
# Default is &#8220;&#8221;<br />
ServerArgsLocal=-nolisten tcp -layout Huge<br />
AllowNullPasswd=true<br />
AllowShutdown=All</p>
<p># Greeter config for 1st local display<br />
[X-:0-Greeter]<br />
&#8230;
</p>
</blockquote>
<p>That&#8217;s all. Enjoy.</p>
<p><a class="imagelink" href="http://ejs.seniejitrakai.net/wp-content/uploads/very_huge_desktop.png" title="my really huge desktop" target="_new" ><img class='center' src="http://ejs.seniejitrakai.net/wp-content/uploads/very_huge_desktop.thumbnail.png" alt="my really huge desktop" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2007/01/10/more-complicated-xorg-configuration-on-my-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with a new Debian instalation</title>
		<link>http://ejs.seniejitrakai.net/2006/12/02/fun-with-a-new-debian-instalation/</link>
		<comments>http://ejs.seniejitrakai.net/2006/12/02/fun-with-a-new-debian-instalation/#comments</comments>
		<pubDate>Sat, 02 Dec 2006 20:11:01 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=37</guid>
		<description><![CDATA[After Ubuntu was randomly refusing to load on my laptop, I returned to Debian. Netinst disc, an hour on 2MBps link and we are here &#8211; mixed Debian testing/unstable with KDE, Cinelerra, Kino, gEDA an a lot of &#8216;standart&#8217; stuff. The problems were: missing one of Debian package keys, although &#8216;debian-archive-keyring&#8217; is the latest version; [...]]]></description>
			<content:encoded><![CDATA[<p>After Ubuntu was randomly refusing to load on my laptop, I returned to Debian.<br />
Netinst disc, an hour on 2MBps link and we are here &#8211; mixed Debian testing/unstable with KDE, Cinelerra, Kino, gEDA an a lot of &#8216;standart&#8217; stuff.<br />
 The problems were: </p>
<p><span id="more-37"></span></p>
<ul>
<li>missing one of Debian package keys, although &#8216;debian-archive-keyring&#8217; is the latest version;</li>
<li>the empty KDE control center. The solution was not so simple. Seems like Debian control package is missing a file: <a href="http://forums.debian.net/viewtopic.php?t=10082&#038;postdays=0&#038;postorder=asc&#038;start=15&#038;sid=8c4ee7881fc7de1e321835fd94fb5cd6">post forums.Debian.net</a>
<p>The solution is to create <em>/etc/xdg/menus/applications-merged/kde-essential.menu</em> file with the following content: </p>
<pre>
 &lt;!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd"&gt;

&lt;Menu&gt;
&lt;!-- The following menus are hidden by default --&gt;
&lt;Menu&gt;
&lt;Name&gt;Settings&lt;/Name&gt;
&lt;Directory&gt;kde-settings.directory&lt;/Directory&gt;
&lt;MergeFile&gt;../kde-settings.menu&lt;/MergeFile&gt;
&lt;/Menu&gt;
&lt;Menu&gt;
&lt;Name&gt;Information&lt;/Name&gt;
&lt;Directory&gt;kde-information.directory&lt;/Directory&gt;
&lt;MergeFile&gt;../kde-information.menu&lt;/MergeFile&gt;
&lt;/Menu&gt;
&lt;Move&gt;
&lt;Old&gt;Settings/Information&lt;/Old&gt;&lt;New&gt;Information&lt;/New&gt;
&lt;/Move&gt;
&lt;Menu&gt;
&lt;Name&gt;System&lt;/Name&gt;
&lt;Menu&gt;
&lt;Name&gt;ScreenSavers&lt;/Name&gt;
&lt;Directory&gt;kde-system-screensavers.directory&lt;/Directory&gt;
&lt;MergeFile&gt;../kde-screensavers.menu&lt;/MergeFile&gt;
&lt;/Menu&gt;
&lt;/Menu&gt;
&lt;/Menu&gt;
</pre>
</li>
<li>libxaw8 library is missing fro the repisitory, so <em>ngspice</em> from <a href="http://www.zerobeat.in/ngspice/">zerobeat.in</a> is not installing.</li>
<li><em>usbmgr</em> for some reason is not installed by default, so USB mouse does not work. And yes, please dot&#8217;t use &#8216;usbmouse&#8217; module on a rush;)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2006/12/02/fun-with-a-new-debian-instalation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
