<?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>Roshan Kulkarni &#187; Linux</title>
	<atom:link href="http://roshankulkarni.info/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://roshankulkarni.info</link>
	<description>On Technology, Web and Consulting</description>
	<lastBuildDate>Sun, 30 May 2010 18:28:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>OpenSuse 11.2 on Sony Vaio NS25G: Internal Microphone HOW-TO</title>
		<link>http://roshankulkarni.info/2010/05/internal-microphone-on-opensuse-11-2-sony-vaio-ns-25g/</link>
		<comments>http://roshankulkarni.info/2010/05/internal-microphone-on-opensuse-11-2-sony-vaio-ns-25g/#comments</comments>
		<pubDate>Sun, 30 May 2010 17:52:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vaio]]></category>

		<guid isPermaLink="false">http://roshankulkarni.info/?p=151</guid>
		<description><![CDATA[On my fresh OpenSuse 11.2 setup, the VAIO inbuilt speakers worked well, but the internal mic did not seem to capture. KRecord and Skype did not pick the microphone inputs. Much tinkering and several days later&#8230; My initial suspect of pulse-audio being broken was wrong. The following fix worked: Dig into the Sound card hardware: [...]]]></description>
			<content:encoded><![CDATA[<p>On my fresh OpenSuse 11.2 setup, the VAIO inbuilt speakers worked well, but the internal mic did not seem to capture. KRecord and Skype did not pick the microphone inputs. Much tinkering and several days later&#8230;</p>
<p>My initial suspect of pulse-audio being broken was wrong. The following fix worked:</p>
<p>Dig into the Sound card hardware:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Audio</pre></div></div>

<pre>00:1b.0 Audio device: Intel Corporation <strong>82801I</strong> (ICH9 Family) HD Audio Controller</pre>
<p>This Intel-compatible audio controller would use the <strong>snd-hda-intel</strong> driver. Let&#8217;s find out:</p>
<p><a href="http://www.roshankulkarni.info/wp-content/uploads/2010/05/yast_sound.jpeg"><img src="http://www.roshankulkarni.info/wp-content/uploads/2010/05/yast_sound.jpeg" alt="yast_sound" title="yast_sound" width="500" /></a></p>
<p style="clear:both;">From the <strong>Yast Control Center</strong> pick <em>Hardware > Sound</em>. In the screenshot below, the last line indicates the <strong>snd-hda-intel</strong> driver. Hit <em>Edit</em> and set the <em>model</em> option to <strong>toshiba-s06</strong>. Hit Next/Ok all the way thru.
</p>
<p><a href="http://www.roshankulkarni.info/wp-content/uploads/2010/05/yast_sound_1.jpeg"><img src="http://www.roshankulkarni.info/wp-content/uploads/2010/05/yast_sound_1.jpeg" alt="YAST Sound Configuration" title="YAST Sound Configuration" style="clear: both;"  width="500"/></a></p>
<p style="clear:both;">You can verify your settings out here:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #660033;">-R</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modprobe.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">50</span>-sound.conf
options snd-hda-intel <span style="color: #007800;">model</span>=toshiba-s06</pre></div></div>

<p>Use the <strong>alsamixer</strong> to make sure your speaker and capture volumes are cranked up.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">alsamixer</pre></div></div>

<p><a href="http://www.roshankulkarni.info/wp-content/uploads/2010/05/alsa_mixer.jpeg"><img src="http://www.roshankulkarni.info/wp-content/uploads/2010/05/alsa_mixer.jpeg" alt="alsa_mixer" title="alsa_mixer" width="500" /></a></p>
<p style="clear:both;">The references below helped. The Ubuntu forums link below has references to other model names that might work for other laptop models.</p>
<p>[1] https://help.ubuntu.com/community/HdaIntelSoundHowto<br />
[2] http://ubuntuforums.org/showthread.php?t=314383</p>
]]></content:encoded>
			<wfw:commentRss>http://roshankulkarni.info/2010/05/internal-microphone-on-opensuse-11-2-sony-vaio-ns-25g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Linux quickie &#8211; Determine your Linux distribution</title>
		<link>http://roshankulkarni.info/2010/05/another-linux-quickie/</link>
		<comments>http://roshankulkarni.info/2010/05/another-linux-quickie/#comments</comments>
		<pubDate>Sun, 09 May 2010 07:19:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://roshankulkarni.info/?p=146</guid>
		<description><![CDATA[I find myself staring at a remote shell, not knowing what Linux distribution the box is running. There does not seem to be any uname like universal command for this. Here are a few files to try: OpenSuse: cat /etc/SuSE-release cat /etc/issue Debian and it&#8217;s variants: cat /etc/debian_version RedHat: cat/etc/redhat-release Slackware: cat /etc/slackware-version And this [...]]]></description>
			<content:encoded><![CDATA[<p>I find myself staring at a remote shell, not knowing what Linux distribution the box is running. There does not seem to be any <em>uname</em> like universal command for this. Here are a few files to try:</p>
<p><strong>OpenSuse:</strong><br />
cat /etc/SuSE-release<br />
cat /etc/issue</p>
<p><strong>Debian and it&#8217;s variants:</strong><br />
cat /etc/debian_version</p>
<p><strong>RedHat:</strong><br />
cat/etc/redhat-release</p>
<p><strong>Slackware:</strong><br />
cat /etc/slackware-version </p>
<p>And this one too:<br />
dmesg | head -1</p>
]]></content:encoded>
			<wfw:commentRss>http://roshankulkarni.info/2010/05/another-linux-quickie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Penguin Notes: LCD Brightness, Firefox Annoyances</title>
		<link>http://roshankulkarni.info/2010/05/penguin-notes-lcd-brightness-firefox-annoyances/</link>
		<comments>http://roshankulkarni.info/2010/05/penguin-notes-lcd-brightness-firefox-annoyances/#comments</comments>
		<pubDate>Sun, 09 May 2010 07:12:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://roshankulkarni.info/?p=142</guid>
		<description><![CDATA[A few notes to self, trying to make my new OpenSuse desktop more hospitable. Annoyance 1: The laptop brightness controls did not adjust the brightness on KDE 4 running on OpenSuse 11.2. (They worked on Ubuntu Jaunty earlier). Neither could I find brightness sliders anywhere in KDE panels. This helped: 1 $ xbacklight -set 70 [...]]]></description>
			<content:encoded><![CDATA[<p>A few notes to self, trying to make my new OpenSuse desktop more hospitable.</p>
<p><strong>Annoyance 1:</strong><br />
The laptop brightness controls did not adjust the brightness on KDE 4 running on OpenSuse 11.2. (They worked on Ubuntu Jaunty earlier). Neither could I find brightness sliders anywhere in KDE panels. This helped:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ xbacklight <span style="color: #660033;">-set</span> <span style="color: #000000;">70</span></pre></td></tr></table></div>

<p>The value range is from 0 thru 100. Oddly, the laptop&#8217;s brightness shortcuts are BIOS controlled, so I wonder why they are dependent on the OS.</p>
<p><strong>Annoyance 2:</strong><br />
A Ctrl+Bksp (Control + Backspace) on the Firefox address bar erased the entire address. I&#8217;m accustomed to using Ctrl + Bksp to erase segments of the URLs (&#8220;/&#8221; separated). The fix was in the Firefox &#8220;about:config&#8221;</p>
<ul>
<li>Firefox Address bar: &#8220;about:config&#8221;</li>
<li>Filter by &#8220;layout&#8221;. Edit this item &#8220;layout.word_select.stop_at_punctuation&#8221;</li>
<li>Change that to a true</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://roshankulkarni.info/2010/05/penguin-notes-lcd-brightness-firefox-annoyances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up an Apache2 Virtual Host for a Subdomain</title>
		<link>http://roshankulkarni.info/2009/09/setting-up-apache2-virtual-host-for-your-project/</link>
		<comments>http://roshankulkarni.info/2009/09/setting-up-apache2-virtual-host-for-your-project/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 06:29:36 +0000</pubDate>
		<dc:creator>roshan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://roshankulkarni.info/?p=47</guid>
		<description><![CDATA[I&#8217;ve done this several times before, so noting it for my own quick reference. This might be of help to others finding their way around Apache deployments. I&#8217;ve tried this on a Ubuntu 9.04 (Jaunty Jackalope) with Apache2. Here is what we are trying to setup: Subdomain for your web project: http://mysubdomain.mydomain.com (say, http://staging.mykillerapp.com) You [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve done this several times before, so noting it for my own quick reference. This might be of help to others finding their way around Apache deployments.</p>
<p>I&#8217;ve tried this on a Ubuntu 9.04 (Jaunty Jackalope) with Apache2. Here is what we are trying to setup:</p>
<ul>
<li>Subdomain for your web project: <em>http://mysubdomain.mydomain.com (say, http://staging.mykillerapp.com)<br />
</em></li>
</ul>
<ul>
<li>You wish to give restricted access to a people in your team, to deploy the project. You don&#8217;t wish to give them sudo or admin rights to your Linux box.</li>
</ul>
<p><strong>Creating a Sub-domain</strong></p>
<p>Your hosting provider is likely to give you a web-based domain management tool (CPanel or something else). Add a DNS &#8220;A record&#8221; as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">subdomain      PUBLICIPADDRESS      A</pre></div></div>

<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">staging      x.x.x.x      A</pre></div></div>

<p><strong>Create a non-root user account to manage your application</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ adduser staging</pre></div></div>

<p>I&#8217;m assuming that staging home is the usual <em>/home/staging</em>. Lets create a <em>www </em>under it, which will serve as the root directory for our virtual host<em> /home/staging/www/</em></p>
<p><strong>Enable the Apache Virtual Host Module</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod vhost_alias</pre></div></div>

<p><strong>Create a virtual host configuration for Apache2</strong></p>
<p>Apache2 tracks the virtual hosts configurations in this location:<em> /etc/apache2/sites-available/.</em> There will be a default config file; Lets make a copy of that file at the same directory location.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> default staging
$ <span style="color: #c20cb9; font-weight: bold;">vi</span> staging</pre></td></tr></table></div>

<p>Make your virtual host file look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;VirtualHost</span> *:80<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
        ServerName staging.mykillerapp.com
        ServerAdmin appadmin@mykillerapp.com
        DocumentRoot /home/staging/www/
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Directory</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                Options FollowSymLinks
                AllowOverride All
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Directory</span> /home/staging/www<span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                Options FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
        ErrorLog /var/log/apache2/error.log
&nbsp;
        # Possible values include: debug, info, notice, 
        # warn, error, crit, alert, emerg.
        LogLevel warn
&nbsp;
        CustomLog /var/log/apache2/access.log combined
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><strong>Enable your virtual host</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> a2ensite staging</pre></div></div>

<p>This sets up a soft-link in <em>/etc/apache2/sites-enabled/</em> which points to your virtual host config file.</p>
<p><strong>Finally, restart apache</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> service apache2 restart</pre></div></div>

<p style="text-align: left;"><em>Hit your virtual host <em>at http://staging.mykillerapp.com</em></em></p>
]]></content:encoded>
			<wfw:commentRss>http://roshankulkarni.info/2009/09/setting-up-apache2-virtual-host-for-your-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

