<?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>fadvisor.net/blog &#187; Linux</title>
	<atom:link href="http://fadvisor.net/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://fadvisor.net/blog</link>
	<description>Fahad Alduraibi Blog</description>
	<lastBuildDate>Tue, 29 Nov 2011 22:28:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Front Mic problem in Fedora 14</title>
		<link>http://fadvisor.net/blog/2011/03/front-mic-problem-in-fedora-14/</link>
		<comments>http://fadvisor.net/blog/2011/03/front-mic-problem-in-fedora-14/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 15:48:35 +0000</pubDate>
		<dc:creator>Fahad Alduraibi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Alsa]]></category>
		<category><![CDATA[D620]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Front Mic]]></category>
		<category><![CDATA[Pulseaudio]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=452</guid>
		<description><![CDATA[After upgrading to Fedora 14 I noticed that the built-in mic in my Dell D620 stopped working, after searching here and there I the problem is between ALSA and Pulseaudio, since alsa will show to capture devices &#8220;Mic&#8221; &#38; &#8220;Front Mic&#8221; and Pulseaudio will use Mic as the default instead of Front Mic. So I [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After upgrading to Fedora 14 I noticed that the built-in mic in my Dell D620 stopped working, after searching here and there I the problem is between ALSA and Pulseaudio, since alsa will show to capture devices &#8220;Mic&#8221; &amp; &#8220;Front Mic&#8221; and Pulseaudio will use Mic as the default instead of Front Mic.</p>
<p style="text-align: justify;">So I used &#8220;alsamixer&#8221; to set the correct capture source and that worked but after a reboot it was set back to Mic. Then I found about &#8220;alsactl&#8221; which should store the current setting by doing &#8220;alsactl store&#8221; but that did not work either since I think pulseaudio does not look into that.</p>
<p style="text-align: justify;">Uninstalling pulseaudio as some people suggested solved the Mic problem but caused many other problems when playing many applications that want to play audio (like flash apps such as youtube and video apps&#8230;etc),  this is an ALSA problem that pulseaudio try to solve AFAIK.</p>
<p>The solution that I found was to use &#8220;amixer&#8221; which can be run from the command line with the parameters to set &#8220;Front Mic&#8221; as the capture source. Here is the full command for my device:</p>
<pre class="brush: bash; title: ; notranslate">amixer -c 0 cset numid=6,iface=MIXER,name='Input Source' 1</pre>
<p>To explain the previous command:<br />
[-c 0] is to select the first sound card (the only card in my laptop, but if you have two cards they will be 0 and 1)<br />
[cset] is to tell amixer that you want to set these settings<br />
[numid, iface, and MIXER] are information about your card and what source you want to change the settings for, and here is how I get these information:</p>
<pre class="brush: bash; title: ; notranslate">[fad@fad ~]$ amixer -c0 contents
numid=2,iface=MIXER,name='Master Playback Switch'
 ; type=BOOLEAN,access=rw------,values=2
 : values=on,on
numid=1,iface=MIXER,name='Master Playback Volume'
 ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
 : values=14,14
 | dBscale-min=-46.50dB,step=1.50dB,mute=0
......
......
numid=6,iface=MIXER,name='Input Source'
 ; type=ENUMERATED,access=rw------,values=1,items=2
 ; Item #0 'Mic'
 ; Item #1 'Front Mic'
 : values=0
......
......</pre>
<p style="text-align: justify;">And as you can see in the previous result the part that am looking for is (<strong>numid=6,iface=MIXER,name=&#8217;Input Source&#8217;</strong>) and it lists <strong>Mic=0</strong> and <strong>Front Mic=1</strong> but the selected<strong> values=0</strong> which is for Mic and I need to set it to 1</p>
<p>Here is the command again:</p>
<pre class="brush: bash; title: ; notranslate">amixer -c 0 cset numid=6,iface=MIXER,name='Input Source' 1</pre>
<p style="text-align: justify;">put this command in a script file and make it run whenever you login to your profile (I tried adding it to the rc.local so it will execute with every boot but that didn&#8217;t work, since I think the settings is applied during login time for each user)</p>
<p>For KDE users you can put that script (or a link to it) under:</p>
<pre class="brush: bash; title: ; notranslate">/home/&lt;username&gt;/.kde/Autostart/</pre>
<p>or through the KDE &#8220;System Settings&#8221;&gt;&#8221;Startup and Shutdown&#8221;&gt;&#8221;Autostart&#8221;</p>
<p>Now at each login this command should set the correct input source which pulseaudio will use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2011/03/front-mic-problem-in-fedora-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lsof واخواتها (اوامر للنكس)</title>
		<link>http://fadvisor.net/blog/2011/03/lsof-and-other-linux/</link>
		<comments>http://fadvisor.net/blog/2011/03/lsof-and-other-linux/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 03:34:16 +0000</pubDate>
		<dc:creator>فهد الدريبي</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[lsmod]]></category>
		<category><![CDATA[lsof]]></category>
		<category><![CDATA[lspci]]></category>
		<category><![CDATA[lspcmcia]]></category>
		<category><![CDATA[lsusb]]></category>
		<category><![CDATA[اوامر]]></category>
		<category><![CDATA[تشخيص]]></category>
		<category><![CDATA[حماية]]></category>
		<category><![CDATA[لنكس]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=437</guid>
		<description><![CDATA[في هذا الموضوع ساتحدث عن بعض الاوامر اللتي اعتقد انها مهمة في للمساعدة في تشخيص وصيانة نظام اللنكس وجهاز الحاسب الذي يعمل عليه. يمكن تنفيذ هذه الاوامر كمستخدم عادي، لكن قد لاتكون النتائج كاملة ويجب تنفيذها كمستخدم رئيس (root) للحصول على جميع المعلومات. اول هذه الاوامر هو lsof وهو اختصار (List Open Files) يعني عرض [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify" dir="rtl">في هذا الموضوع ساتحدث عن بعض الاوامر اللتي اعتقد انها مهمة في للمساعدة في تشخيص وصيانة نظام اللنكس وجهاز الحاسب الذي يعمل عليه. يمكن تنفيذ هذه الاوامر كمستخدم عادي، لكن قد لاتكون النتائج كاملة ويجب تنفيذها كمستخدم رئيس (root) للحصول على جميع المعلومات.</p>
<p style="text-align: justify" dir="rtl">اول هذه الاوامر هو <strong>lsof</strong> وهو اختصار (List Open Files) يعني عرض الملفات المفتوحة، والملفات في نظام اللنكس ليس محصورة بالملفات العادية كما تعرف في نظام الوندوز ولكنها تشمل المجلدات و المكتبات و ارتباطات الشبكة و انواع اخرى من الملفات الخاصه. وعند تنفيد الامر فسيقوم بعرض قائمة بجميع الملفات المفتوحه حاليا و اسم المستخدم الذي قام بفتح الملف ورقم العملية التي تم من خلالها فتح الملف (Process ID) و نوع الملف وحجمة (اذا كان ذو حجم معروف) و مسار الملف. القائمة في الغالب ستكون كبيره جدا ولذا تحتاج في الغالب لعمل تخصيص للتحكم في المخرجات.</p>
<p style="text-align: justify" dir="rtl">احد الاستخدامات هي معرفة جميع البرامج المتصلة بالانترنت في حال الشك بان الجهاز قد يكون مخترقا او التاكد من حالة الاتصال بالمواقع او معرفة رقم المنفذ الذي يستخدمة خادم معين:</p>
<pre class="brush: bash; title: ; notranslate"> lsof -i
اوامر مشابهه
ss -ap
netstat -tuap</pre>
<p style="text-align: justify" dir="rtl">اما في حال اردت معرفة (او اغلاق) ملف مفتوح (مثلا قمت بفتح ملف في كرت ذاكرة خارجي Flash Drive ولكن عند محاولت ازالة الكرت اخبرك النظام بان احد الملفات لازال مفتوحا) فالتوصل للملف المفتوح ومعرفة البرنامج المتصل بذلك الملف عمليه سهلة جدا باستخدام lsof وهي كالتالي:<br />
اولا نفرض ان مسار كرت الذاكرة هو /media/disk/ فتقوم بتنفيذ الامر التالي:</p>
<pre class="brush: bash; title: ; notranslate">lsof | grep /media/disk/</pre>
<p style="text-align: justify" dir="rtl">فالامر الاول lsof سيعرض جميع الملفات المفتوحة لكن بدل من تعرض النتائج على الشاشه بل سوف ترسل للامر التالي grep و المسؤل عن عمليه الارسال تلك هي علامة الانبوب | (pipe) حيث ان نظام اللنكس عندما يجد ذلك الخط العمودي بين امرين فانه يمرر مخرجات الامر الاول كمدخلات للامر الثاني. اما الامر grep فان امر ترشيح (Filter) حيث ان يقوم بالبحت في المدخلات عن اي سطر يحتوي على الكلمة المذكورة بعد (في مثالنا هذا فانه يبحث عن /media/disk/) ثم يعرض السطر الكامل الذي يوجد به مثل ذلك النص.<br />
فالناتج النهائي من تنفيذ هذا الامر هو قائمة باسم الملف او الملفات التي لاتزال مفتوحة من كرت الذاكرة والبرنامج الذي قام بفتح ذلك الملف ثم ما عليك سوى اغلاق ذلك البرنامج وستتمكن من ازالت الكرت بشكل امن. ولاغلاق البرامج يمكن استخدام الامر kill مع رقم العملية (Process ID) كالتالي:</p>
<pre class="brush: bash; title: ; notranslate"> kill &lt;PID&gt;  (اغلاق البرنامج بطيقة امنة)
kill -9 &lt;PID&gt;  (اغلاق اجباري للبرنامج)</pre>
</p>
<p dir="rtl">اوامر اخرى من عائلة lsof هي:</p>
<pre><strong>lsusb</strong> يعرض قائمة باجهزة USB المتصلة حاليا بالجهاز
<strong>lspci</strong> يعرض قائمة كروت PCI المركبة بداخل الجهاز
<strong>lsmod</strong> يعرض قائمة بمعرفات الاجهزة التي تم تشغيلها
<strong>lspcmcia</strong> قائمة كروت PCMCIA المركبة بالجهاز
<strong>lshal</strong> قائمة الاجهزة المركبة في الجهاز (USB و PCIو غيرة)
<strong>lscpu</strong> معلومات عن المعالج المستخدم</pre>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2011/03/lsof-and-other-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>مبادي نظام اللنكس</title>
		<link>http://fadvisor.net/blog/2011/03/linux-principles/</link>
		<comments>http://fadvisor.net/blog/2011/03/linux-principles/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 15:38:03 +0000</pubDate>
		<dc:creator>فهد الدريبي</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[اوامر]]></category>
		<category><![CDATA[حماية]]></category>
		<category><![CDATA[لنكس]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=403</guid>
		<description><![CDATA[في هذا الموضوع سوف احاول تقديم بعض الاوامر المهمة لمستخدمي النظام المفتوح المصدر والمجاني لنكس. جميع هذه الاوامر تنفذ من خلال نافذة الاوامر (Terminal or Command Line) وفي الغالب ستجدها في جميع توزيعات اللينكس واليونكس كذلك مع بعض الاختلافات البسيطه احيانا. * توضيح: ما اضعه بين علامتي &#60;&#62; يعني انه يجب استبداله بشي مناسب كاسم [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;" dir="rtl">في هذا الموضوع سوف احاول تقديم بعض الاوامر المهمة لمستخدمي النظام المفتوح المصدر والمجاني لنكس. جميع هذه الاوامر تنفذ من خلال نافذة الاوامر (Terminal or Command Line) وفي الغالب ستجدها في جميع توزيعات اللينكس واليونكس كذلك مع بعض الاختلافات البسيطه احيانا.</p>
<p style="text-align: justify;" dir="rtl">* توضيح: ما اضعه بين علامتي &lt;&gt; يعني انه يجب استبداله بشي مناسب كاسم ملف او مجلد وما هو بين اقواس ( ) فهذا فقط شرح مني للامر المذكور ولايكتب اثناء التنفيذ.</p>
<p dir="rtl">سوف ابدأ بأحد الاوامر المهمة:</p>
<p dir="rtl">الامر: <strong>man</strong><br />
التعريف: عرض معلومات عن معظم اومر النظام وشرحها وطرق استخدامها<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">man &lt;الامر&gt;</pre>
<p dir="rtl">الامر:<strong> ls</strong><br />
التعريف: لعرض الملفات الموجود في المجلد الحالي<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">ls (عرض الملفات والمجلدات فقط)
ls -l (الملفات على شكل قائمة مع عرض حجم الملف والصلاحيات)
ls -a (الملفات المخفية اللتي تبدا بنقطه)</pre>
<p dir="rtl">كما يمكن دمج بعض الخيارات كدمج a و l للحصول على قائمة الملفات مع الملفات المخفية ولمزيد من الخيارات يمكن استخدام الامر man للحصول على المزيد من التفاصيل</p>
<p dir="rtl">الامر: <strong>cp</strong><br />
التعريف: نسخ ملف او ملفات الى مجلد اخر (او انشاء نسخه للملف باسم مختلف)<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">cp &lt;file&gt; &lt;folder/&gt;  (نسخ ملف الى مجلد)
cp &lt;file&gt; &lt;newfile&gt; (انشاء نسخة من الملف)</pre>
<p dir="rtl">الامر: <strong>mv</strong><br />
التعريف: نقل ملف او ملفات الى مجلد اخر (او تغيير اسم الملف)<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">mv &lt;file&gt; &lt;folder/&gt;  (نقل ملف الى مجلد)
mv &lt;file&gt; &lt;newfilename&gt;  (تغيير اسم ملف)</pre>
<p dir="rtl">الامر: <strong>rm</strong><br />
التعريف: مسح ملفات او مجلدات<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">rm &lt;files&gt;  (مسح ملفات)
rm -r &lt;folder/&gt;  (مسح المجلد و الملفات التي بداخله)</pre>
<p dir="rtl">الامر: <strong>mkdir و rmdir</strong><br />
التعريف: انشاء و حذف مجلد (لحذف مجلد يشترط ان يكون فارغا، وان لم يكن فارغا فيستخدم الامر السابق)<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">mkdir &lt;folder&gt;  (انشاء مجلد)
rmdir &lt;folder&gt; (حذف مجلد)</pre>
<p dir="rtl">الامر: <strong>ps</strong><br />
التعريف: عرض قائمة البرامج التي تعمل الان<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">ps  (سيعرض فقط البرامج التي تعمل في نافذة الاوامر)
ps aux  (جميع البرامج اللتي تعمل وتفاصيل مهمه اخرى)</pre>
<p dir="rtl">الامر: <strong>df</strong><br />
التعريف: عرض معلومات عن المساحة المستخدمة والمتبقية من القرص الصلب لجميع الاقسام<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">df (عرض الارقام بالبايت)
df -h (عرض الارقام يصيغة اسهل للقرائة مثل ميقا قيقا)</pre>
<p dir="rtl">الامر: <strong>free</strong><br />
التعريف: عرض معلومات عن استخدام الذاكرة والذاكرة الاحتياطية في القرص الصلب (swap)<br />
طريقة الاستخدام:</p>
<pre class="brush: bash; title: ; notranslate">free (عرض الارقام بالكيلو بايت)
free -m (عرض الارقام بالميقا بايت)</pre>
<p dir="rtl">هذه بعض الاوامر وهناك الكثير وساقوم بكتابه موضوع اخر عن اوامر اخرى متقدمة</p>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2011/03/linux-principles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RPM Fusion Smart channels for Fedora</title>
		<link>http://fadvisor.net/blog/2011/03/rpm-fusion-smart-channels-for-f14/</link>
		<comments>http://fadvisor.net/blog/2011/03/rpm-fusion-smart-channels-for-f14/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 19:33:23 +0000</pubDate>
		<dc:creator>Fahad Alduraibi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[Fedora 14]]></category>
		<category><![CDATA[Fedora 15]]></category>
		<category><![CDATA[Package Manager]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[rpmfusion]]></category>
		<category><![CDATA[Smart]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=392</guid>
		<description><![CDATA[If you are a Fedora user then you must be using RPM Fusion and if you are not then please do since it provides you with many cool packages that Fedora doesn&#8217;t come with (like ATI &#38; nVidia drivers, video and audio codec&#8230;etc). After you install RPM Fusion repositories (through their provided rpm packages which [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a Fedora user then you must be using <a href="http://www.rpmfusion.org/" target="_blank">RPM Fusion</a> and if you are not then please do since it provides you with many cool packages that Fedora doesn&#8217;t come with (like ATI &amp; nVidia drivers, video and audio codec&#8230;etc). After you install RPM Fusion repositories (through their provided rpm packages which you can find about under the &#8216;Configuration&#8217; in their website) you will be able to use it right away from the command line by using &#8216;yum&#8217; or if you like the GUI (like I do) then it is <a href="http://en.wikipedia.org/wiki/PackageKit" target="_blank">PackageKit</a>. However, there is one thing that I don&#8217;t like about PackageKit which is dealing with dependencies.PackageKit will only resolve dependencies when you apply the changes not while you are making them (selecting to install or remove a package). I find that annoying since sometimes when I select to remove some packages that I think I don&#8217;t need and  when I click on apply it will show the list of dependencies of all the selected packages and will not tell you which one of the selected packages is needed by those other packages and the only way to find out  is by removing packages one by one. Same thing when installing.<br />
However, there is a solution to this problem, it is called <a href="http://labix.org/smart/" target="_blank">Smart</a>, Smart is a package manager that can be used to manage &#8216;rpm&#8217; packages (and also apt as well). You can install Smart and the GUI from Fedora repos with this command:</p>
<blockquote><p>yum install smart smart-gui</p></blockquote>
<p>The biggest advantage of using Smart over PackageKit is the way it resolves dependencies. Smart will do that instantly while you are clicking to install a new package or trying to remove one. So for example if you are using Fedora with KDE and wanted to remove all Gnome packages and you clicked for example on &#8216;gnome-vfs2&#8242; Smart will immediately look for all other packages that depends on this one and if any it will show you a windows of the list of all other packages that will be removed as a result of removing this one, among that list you will find &#8216;Firefox&#8217;, &#8216;vlc&#8217; and other packages that I actually need, so that means this one is important and i will just hit cancel to keep it. Same thing when for example you want to install and try some application but you find that it needs many other packages to be installed as well.</p>
<p>However, it seems that Fedora and RPMfusion are not giving much attention to Smart and the channels files (channel = repo) are not updated for Fedora 14 (was also the case for F13 when it was released) so I decided to update those packages myself and maybe find a way to send them to Fedora and RPMFusion so they will sign them and add them to their main repositories.</p>
<p>Download the appropriate files for your system or the source if you wanna compile the rpms and sign them yourself (you will need to rerun Smart so it detects the changes):</p>
<ul>
<li><a href="http://fadvisor.net/blog/download/smart_channels-i386.zip">smart_channels-i386.zip</a> (for Fedora 14)</li>
<li><a href="http://fadvisor.net/blog/download/smart_channels-x86_64.zip">smart_channels-x86_64.zip</a> (for Fedora 14)</li>
<li><a href="http://fadvisor.net/blog/download/smart_channels-src.zip">smart_channels-src.zip</a> (for Fedora 14)</li>
</ul>
<p>Update: Since not much attention from Fedora and RPMfusion is giving to Smart I built my own rpms again for Fedora 15:</p>
<ul>
<li><a href="http://fadvisor.net/blog/download/smart-channels-F15-i386.tar.gz">smart-channels-F15-i386.tar.gz</a> (for Fedora 15)</li>
<li><a href="http://fadvisor.net/blog/download/smart-channels-F15-x86_64.tar.gz">smart-channels-F15-x86_64.tar.gz</a> (for Fedora 15)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2011/03/rpm-fusion-smart-channels-for-f14/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fedora 9 and UTC time problem</title>
		<link>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/</link>
		<comments>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:31:01 +0000</pubDate>
		<dc:creator>Fahad Alduraibi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Localtime]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=6</guid>
		<description><![CDATA[Fedora 9 was released I installed it on my laptop next to the pre-installed Fedora 8 and Windows XP. There are some issues with the release, like nVidia drivers, but I was expecting such things. However, there was one small problem that didn&#8217;t make since at first which is the time settings. Whenever I change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Fedora 9 was released I installed it on my laptop next to the pre-installed Fedora 8 and Windows XP. There are some issues with the release, like nVidia drivers, but I was expecting such things. However, there was one small problem that didn&#8217;t make since at first which is the time settings.</p>
<p style="text-align: justify;">Whenever I change from Fedora 8 or Windows XP to the new Fedora 9  or vice versa the time of my machine will change, it will go backward or forward with a fixed offset, and I knew it is a problem with timezone. So before I explain the problem I would like to mention that each machine has a clock that works even if the machine is turned off, using a battery that is connected to the motherboard, and when the operating system boots it will read the time from that clock.<span id="more-6"></span></p>
<p style="text-align: justify;">For Windows OS, the time that is shown to you in the taskbar is the same time of the hardware clock, and when you change your time in Windows, it will update the hardware clock to reflect the same change. So let say that you are in a city with timezone &#8221; -6 &#8221; and Windows is set to that zone, then the hardware clock will have the time of that zone also. However, Unix, and Unix compatible OS like Linux, assumes the hardware clock to be set to the UTC &#8220;coordinated universal time&#8221; (which is also called GMT) and it will calculate the local time based on the selected timezone (by adding the offset to the time).</p>
<p style="text-align: justify;">If you have a system with dual boot Windows and Linux you will have this problem, but lucky we are that Linux has the option to assume the hardware clock to be the local-time instead of UTC and it will ack like Windows and that will solve the problem.</p>
<p style="text-align: justify;">So after remembering all of that I tried to loacate this option under my Feroa 9 which tells it to treat the machine clock as a local-time instead of UTC, but I could not find it any where, and after some digging I discovered that since I installed KDE4 only with my new installation, the tool that allows this is based on Gnome desktop and it is called &#8220;system-config-time&#8221;. <em>But I am still wondering why KDE4 does not have a GUI for that!! even in the older version!!</em></p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/kde4-time-control.png"><img class="size-medium wp-image-7" title="kde4-time-control" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/kde4-time-control-272x300.png" alt="The time/date control under KDE 4 and it has no option to tell it if the machine clock is set to local-time or UTC" width="272" height="300" /></a></p>
<p style="text-align: justify;">So I installed this tool and I found that the option for UTC time is checked and I have to uncheck it to resolve the problem.</p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/system-config-time.png"><img class="size-medium wp-image-8" title="system-config-time" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/system-config-time-291x300.png" alt="Date/Time control under Gnome and it has the option to say the hardware (System) clock is using UTC or local-time" width="291" height="300" /></a></p>
<p style="text-align: justify;">Unfortunately it did not work and it gave me an error message after I clicked the OK button and it did not change the settings:</p>
<p><code><br />
File "/usr/lib/python2.5/shutil.py", line 41, in copyfile<br />
raise Error, "`%s` and `%s` are the same file" % (src, dst)<br />
shutil.Error: `/usr/share/zoneinfo/America/Chicago` and `/etc/localtime` are the same file<br />
</code></p>
<p style="text-align: justify;">Finally after more google search I found this command line program &#8220;timeconfig&#8221; (which is text version of the system-config-date) which I used to successfully change the way Linux uses the time stored in my machine.</p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/timeconfig.png"><img class="size-medium wp-image-9" title="timeconfig" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/timeconfig-300x216.png" alt="A command line application that allowed me to set the right time configuration" width="300" height="216" /></a></p>
<p style="text-align: justify;">From my understanding, both tools the GUI &#8220;system-config-date&#8221; and the text based &#8220;timeconfig&#8221; are developed by Redhat, and since they use Gnome as their default destop management they tend to build their tools based on that. However, I like KDE more since it provides me with things that Gnome can&#8217;t. So do I have to suffer for that?</p>
<p style="text-align: justify;">Is this Redhat problem or KDE should develope all of these things?</p>
<p style="text-align: justify;">Any way, I am happy now that my problem is fixed, but I hope the option will be available in KDE 4.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

