<?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>Ralf Schäftlein&#039;s Blog &#187; Linux</title>
	<atom:link href="http://ralf.schaeftlein.de/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://ralf.schaeftlein.de</link>
	<description>tech stuff, talk,...</description>
	<lastBuildDate>Sat, 27 Mar 2010 11:24:38 +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>Printing via SMB from Ubuntu 10.04 to Windows 7</title>
		<link>http://ralf.schaeftlein.de/2010/03/27/printing-via-smb-from-ubuntu-10-04-to-windows-7/</link>
		<comments>http://ralf.schaeftlein.de/2010/03/27/printing-via-smb-from-ubuntu-10-04-to-windows-7/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 11:24:38 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[samsung nc 10]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ralf.schaeftlein.de/?p=219</guid>
		<description><![CDATA[I have successfully installed Ubuntu 10.04 Beta 1 on my Samsung NC10 with dual boot side by side to windows XP Home. The installation process is very smart and allow you to import settings like desktop background from the installed windows xp home. Printer configuration was a bit complicated. The first thing is to change [...]]]></description>
			<content:encoded><![CDATA[<p>I have successfully installed <a href="http://www.ubuntu.com/testing/lucid/beta1">Ubuntu 10.04 Beta 1</a> on my Samsung NC10 with dual boot side by side to windows XP Home. The installation process is very smart and allow you to import settings like desktop background from the installed windows xp home. Printer configuration was a bit complicated. The first thing is to change the workgroup definition in </p>
<p>/etc/samba/smb.conf</p>
<p>    workgroup = XYZ</p>
<p>Change XYZ to your windows 7 workgroup name. Next step is to uninstall the &#8220;Windows Live Sign-In Assistant&#8221; under windows 7 which is the main cause why the windows shares like the printers are not available from ubuntu. After that go to menu item System => administration => Printer. Click on add button and select from the list under network printer the last entry &#8220;windows printer via SAMBA&#8221;. When you now click on browse will be your workgroup and below your windows 7 pc with the printer shares be available.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralf.schaeftlein.de/2010/03/27/printing-via-smb-from-ubuntu-10-04-to-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat 6 Problems on Ubuntu 9.10</title>
		<link>http://ralf.schaeftlein.de/2010/03/10/tomcat-6-problems-on-ubuntu-9-10/</link>
		<comments>http://ralf.schaeftlein.de/2010/03/10/tomcat-6-problems-on-ubuntu-9-10/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 15:13:03 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[aspectj]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ralf.schaeftlein.de/?p=199</guid>
		<description><![CDATA[The default behavior of the tomcat6 server installed from the ubuntu repository is to forbid any read operation of System.getProperty(). I used tomcat6 as deployment target for the hudson builds on the same machine. AspectJ is used in a sample Spring 3 REST application. Tomcat6 logs (catalina-&#8230;log) shows the following exception Caused by: java.security.AccessControlException: access [...]]]></description>
			<content:encoded><![CDATA[<p>The default behavior of the tomcat6 server installed from the ubuntu repository is to forbid any read operation of System.getProperty(). I used tomcat6 as deployment target for the hudson builds on the same machine. AspectJ is used in a sample <a href="http://ralf.schaeftlein.de/2010/03/05/junit-tests-for-spring-3-rest-services/">Spring 3 REST application</a>. Tomcat6 logs (catalina-&#8230;log) shows the following exception</p>
<pre name="code" code='java'>
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.aspectj.tracing.debug read)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
        at java.lang.System.getProperty(System.java:686)
        at org.aspectj.weaver.tools.TraceFactory.getBoolean(TraceFactory.java:34)
        at org.aspectj.weaver.tools.TraceFactory.<clinit>(TraceFactory.java:21)
        ... 68 more
</pre>
<p>Updating aspectj in the maven pom to the latest version <a href="http://www.eclipse.org/aspectj/downloads.php">1.6.8</a> doesn&#8217;t solve<br />
the problem. The same war file works under windows with tomcat <a href="http://tomcat.apache.org/download-60.cgi">6.0.24</a> without any problems. An Forum entry shows the right <a href="http://www.activeobjects.no/subsonic/forum/viewtopic.php?t=2340">hint</a>. Inside the init script<br />
/etc/init.d/tomcat6 is default TOMCAT_SECURITY set to true, which forces the /etc/tomcat6/policy.d/* policies to be used in every web<br />
application inside tomcat. </p>
<pre name="code" code='py'>
# Use the Java security manager? (yes/no)
TOMCAT6_SECURITY=yes
</pre>
<p>So the solution can be quick (set the TOMCAT_SECURITY property inside the init script to no) or a bit more complicated (set a new policy for your web application as new file inside the policy.d folder). The problem with the more complicated one is that you need to know every  security relevant operation to write the policy file). </p>
]]></content:encoded>
			<wfw:commentRss>http://ralf.schaeftlein.de/2010/03/10/tomcat-6-problems-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Damn Small Screen</title>
		<link>http://ralf.schaeftlein.de/2008/07/11/damn-small-screen/</link>
		<comments>http://ralf.schaeftlein.de/2008/07/11/damn-small-screen/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 10:13:28 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ralf.schaeftlein.de/?p=15</guid>
		<description><![CDATA[I switched recently on my home server from OpenSuse 10.3 to Ubuntu Hardy Heron 8.0.4. Main reason was the package management with zypper as backend. Each Distro use several Software Repositories with RPMs where you can search for new software to install on your machine. Normally between four to eight repo&#8217;s are configured independent which [...]]]></description>
			<content:encoded><![CDATA[<p>I switched recently on my home server from <a href="http://www.opensuse.org/">OpenSuse</a> 10.3 to <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> Hardy Heron 8.0.4. Main reason was the package management with zypper as backend. Each Distro use several Software Repositories with RPMs where you can search for new software to install on your machine. Normally between four to eight repo&#8217;s are configured independent which distro you use. OpenSuse become more and more a pain in my ass. Main reason was the more and more increasing time which yast needs to show me the available software packages. For a test drive is <a href="http://www.vmware.com/de/products/server/">VMWare Server</a> really nice. Just setup a new VM, install a distro inside and see if it fits your needs.</p>
<p>Under Ubuntu you must first decide if you want the desktop or server edition. On my notebook was the primary requirement to have a back end for application server like <a href="http://archiva.apache.org/" target="_blank">Archiva</a> or <a href="http://nexus.sonatype.org/" target="_blank">Nexus</a>. Both very comfortable maven proxies with a web frontend. So i decided to install the server edition. The server edition have no window manager and starts a linux just with a console login. So far so good. A little bit hidden is the possibility to change the default screen solution from 800&#215;600 to a larger one. Scrolling log or config files is not that pretty under such conditions.</p>
<p>The solution is in the /etc/grub/menu.1st file. In the end of the file is a list of linux versions. Each runnable linux configuration has a title, root, kernel and initrd line. For a 1024&#215;768 you can append to the kernel line</p>
<p>vga=0&#215;317</p>
<p>according to this <a href="http://ubuntuforums.org/showthread.php?t=258484&amp;highlight=kernel+booting+parameters" target="_blank">howto</a>. Ubuntu has in the last weeks published a new service pack called 8.04.1. Normal updated are installed with a &#8220;apt-get update&#8221; followed by &#8220;apt-get upgrade&#8221; to install updates for installed packages. I saw messages about retained packages after the availibity of this new service pack. A &#8220;apt-get dist-upgrade&#8221; forces to install the retained packages including a new kernel. Remember the line with the kernel paramater in the grub menu file. The update updates this file as well. Grateful it notice my changes and ask me what to do. My first intention was to say ok overwrite my changes and i add that vga parameter as well. That works but it can be handled much smarter. Linux kernel updates can be happen more often.</p>
<p>The solution is to add the vga parameter to defoptions line instead of the kernel line. This line is normally uncommented with a leading # character. So add this line</p>
<p>defoptions=vga=0&#215;317</p>
<p>This 0&#215;317 is the hex definition. Also possible is to write vga=719 with decimal notation.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralf.schaeftlein.de/2008/07/11/damn-small-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
