

<?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>وثائق لينوكس العربية &#187; halt</title>
	<atom:link href="http://www.linuxdocs-ar.com/html/tag/halt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxdocs-ar.com/html</link>
	<description>أكبر موقع وثائق عربي مختص باللينوكس</description>
	<lastBuildDate>Thu, 03 Jun 2010 11:57:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ar</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ايقاف تشغيل الجهاز مع رسالة للمستخدمين</title>
		<link>http://www.linuxdocs-ar.com/html/2008/09/%d8%a7%d9%8a%d9%82%d8%a7%d9%81-%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d8%a7%d9%84%d8%ac%d9%87%d8%a7%d8%b2-%d9%85%d8%b9-%d8%b1%d8%b3%d8%a7%d9%84%d8%a9-%d9%84%d9%84%d9%85%d8%b3%d8%aa%d8%ae%d8%af%d9%85%d9%8a/</link>
		<comments>http://www.linuxdocs-ar.com/html/2008/09/%d8%a7%d9%8a%d9%82%d8%a7%d9%81-%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d8%a7%d9%84%d8%ac%d9%87%d8%a7%d8%b2-%d9%85%d8%b9-%d8%b1%d8%b3%d8%a7%d9%84%d8%a9-%d9%84%d9%84%d9%85%d8%b3%d8%aa%d8%ae%d8%af%d9%85%d9%8a/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 17:42:08 +0000</pubDate>
		<dc:creator>مسلم عادل</dc:creator>
				<category><![CDATA[منوعات لينوكس]]></category>
		<category><![CDATA[halt]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://www.linuxdocs-ar.com/html/?p=313</guid>
		<description><![CDATA[اذا كنت مدير نظام وتحتاج الى ايقاف تشغيل الخادم او اعادة تشغيله، يفضل ان تخبر المستخدمين بذلك حتى يتمكنوا من حفظ اعمالهم وتسجيل الخروج.
استخدم الامر التالي لايقاف التشغيل:
root@laptop:~# shutdown -h +10 "System is going down for shutdown in 10 minutes. Please save your work." 
او التالي لاعادة التشغيل:
root@laptop:~# shutdown -r +10 "System is going down [...]]]></description>
			<content:encoded><![CDATA[<p>اذا كنت مدير نظام وتحتاج الى ايقاف تشغيل الخادم او اعادة تشغيله، يفضل ان تخبر المستخدمين بذلك حتى يتمكنوا من حفظ اعمالهم وتسجيل الخروج.</p>
<p>استخدم الامر التالي لايقاف التشغيل:</p>
<div dir="ltr" align="left"><code>root@laptop:~# shutdown -h +10 "System is going down for shutdown in 10 minutes. Please save your work." </code></div>
<p>او التالي لاعادة التشغيل:</p>
<div dir="ltr" align="left"><code>root@laptop:~# shutdown -r +10 "System is going down for restart in 10 minutes. Please save your work." </code></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxdocs-ar.com/html/2008/09/%d8%a7%d9%8a%d9%82%d8%a7%d9%81-%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d8%a7%d9%84%d8%ac%d9%87%d8%a7%d8%b2-%d9%85%d8%b9-%d8%b1%d8%b3%d8%a7%d9%84%d8%a9-%d9%84%d9%84%d9%85%d8%b3%d8%aa%d8%ae%d8%af%d9%85%d9%8a/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>الزر السحري&#8230; sysrq</title>
		<link>http://www.linuxdocs-ar.com/html/2008/09/%d8%a7%d9%84%d8%b2%d8%b1-%d8%a7%d9%84%d8%b3%d8%ad%d8%b1%d9%8a-sysrq/</link>
		<comments>http://www.linuxdocs-ar.com/html/2008/09/%d8%a7%d9%84%d8%b2%d8%b1-%d8%a7%d9%84%d8%b3%d8%ad%d8%b1%d9%8a-sysrq/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 19:14:18 +0000</pubDate>
		<dc:creator>مسلم عادل</dc:creator>
				<category><![CDATA[الأمن]]></category>
		<category><![CDATA[منوعات لينوكس]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[halt]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[sysrq]]></category>

		<guid isPermaLink="false">http://www.linuxdocs-ar.com/html/?p=64</guid>
		<description><![CDATA[لو افترضنا ان الواجهة الرسومية عندك توقفت عن الاستجابة بشكل كلي، ما يمكننا ان نعمل؟
الانتظار قليلا لعلها تعمل من جديد.
الضغط على ctrl+alt+f1 للذهاب الى الوضع النصي ومحاولة اعادة تشغيل الواجهة الرسومية باستخدام:
root@laptop:~# /etc/init.d/kdm restart
أو
root@laptop:~# /etc/init.d/gdm restart
ولكن النظام مجمد لدرجة ان حتى هذه لا تعمل، اذا ما الحل؟؟ هل اضغط على زر اعادة تشغيل الجهاز؟

لا، الزر [...]]]></description>
			<content:encoded><![CDATA[<p>لو افترضنا ان الواجهة الرسومية عندك توقفت عن الاستجابة بشكل كلي، ما يمكننا ان نعمل؟</p>
<li>الانتظار قليلا لعلها تعمل من جديد.</li>
<li>الضغط على ctrl+alt+f1 للذهاب الى الوضع النصي ومحاولة اعادة تشغيل الواجهة الرسومية باستخدام:</li>
<div dir="ltr" align="left"><code>root@laptop:~# /etc/init.d/kdm restart</code></div>
<p>أو</p>
<div dir="ltr" align="left"><code>root@laptop:~# /etc/init.d/gdm restart</code></div>
<p>ولكن النظام مجمد لدرجة ان حتى هذه لا تعمل، اذا ما الحل؟؟ هل اضغط على زر اعادة تشغيل الجهاز؟</p>
<p><span id="more-64"></span></p>
<p>لا، الزر السحري SysRq الموجود في لوحة المفاتيح هو الحل.</p>
<p>ولكن قبل أن أتحدث عن هذا الزر، علينا التأكد أنه مدعوم في نواة لينوكس، لذا افتح سطر الاوامر واكتب الامر التالي:</p>
<div dir="ltr" align="left"><code>root@laptop:~# grep CONFIG_MAGIC_SYSRQ /boot/config-`uname -r` </code></div>
<p>اذا كان الجواب هو:</p>
<div dir="ltr" align="left">
<blockquote><p>
CONFIG_MAGIC_SYSRQ=y
</p></blockquote>
</div>
<p>فهذا يعني ان النواة تدعمه.</p>
<p>&nbsp;</p>
<h4>طريقة استخدام هذا الزر:</h4>
<p>قم بالضغط على الأزرار التالية معا:</p>
<div dir="ltr" align="left"<br />
<blockquote>
alt+sysrq+[button]
</p></blockquote>
</div>
<p>حيث ان [button] يكون واحد من التالي:</p>
<p><strong>k</strong> يقوم &#8220;بقتل&#8221; (kill) كل البروسيس الشغالة لديك.</p>
<p><strong>r</strong> يقوم بارسال اشارة reset للوحة المفاتيح</p>
<p><strong>s</strong> يقوم بمزامنة الاقراص الصلبة (حفظ البيانات الموجودة في الـbuffer)</p>
<p><strong>e</strong> ينهي كل البروسيس (يرسل اشارة sigterm &#8220;15&#8243;)</p>
<p><strong>i</strong> ينهي البرامج الي لم يتم انهائها بعد</p>
<p><strong>u</strong> يعيد تجهيز (mount) كل انظمة الملفات عندك بصيغة read-only</p>
<p><strong>b</strong> يعيد تشغيل الجهاز (بدون عمل اي شيء، كانك ضغط على زر اعادة التشغيل الموجود في الجهاز، لذا اترك هذا للاخر)</p>
<p><strong>o</strong> يطفيء الجهاز</p>
<p><strong>p</strong> يظهر معلومات تقنية عن المعالج</p>
<p>&nbsp;</p>
<h4>إرسال إشارات sysrq عبر الشبكة</h4>
<p>ايضا يمكنك ان ترسل مثل هذه الاشارات عن طريق الشبكة لفعل هذا اعمل الاتي:</p>
<div dir="ltr" align="left"><code>root@laptop:~# apt-get install sysrqd</code></div>
<p>بعد إنتهاء عملية التركيب، ستحتاج تحديد كلمة مرور للخدمة، لتحديدها اتبع الاتي:</p>
<div dir="ltr" align="left"><code>root@laptop:~# echo 'nobodyOnlyMe' > /etc/sysrqd.secret<br />
root@laptop:~# chmod 600 /etc/sysrqd.secret</code></div>
<p>الان جربه من نفس الجهاز او من اي جهاز في الشبكة:</p>
<div dir="ltr" align="left"><code>arabian@laptop:~$ telnet localhost 4094<br />
&nbsp; Trying 127.0.0.1…<br />
&nbsp; Connected to laptop.linuxdocs-ar.com<br />
&nbsp; Escape character is ‘^]’.<br />
&nbsp; sysrqd password: nobodyOnlyMe<br />
&nbsp; sysrq> s<br />
&nbsp; sysrq> u<br />
&nbsp; sysrq> q </code></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxdocs-ar.com/html/2008/09/%d8%a7%d9%84%d8%b2%d8%b1-%d8%a7%d9%84%d8%b3%d8%ad%d8%b1%d9%8a-sysrq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

