<?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>Seyhan Tekelioglu &#124; Blog &#124; Oracle - Linux - Network &#187; printer</title>
	<atom:link href="http://www.seyhan.biz/index.php/tag/printer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seyhan.biz</link>
	<description>OCP - RHCE - CCNA - MCSE - MCDBA</description>
	<lastBuildDate>Sun, 15 Aug 2010 08:03:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Solaris Sistemlerde Printer Tanımlama</title>
		<link>http://www.seyhan.biz/index.php/2010/05/14/solaris-sistemlerde-printer-tanimlama/</link>
		<comments>http://www.seyhan.biz/index.php/2010/05/14/solaris-sistemlerde-printer-tanimlama/#comments</comments>
		<pubDate>Fri, 14 May 2010 11:02:29 +0000</pubDate>
		<dc:creator>Seyhan Tekelioglu</dc:creator>
				<category><![CDATA[Makalelerim]]></category>
		<category><![CDATA[ekle sil]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tanımlama]]></category>
		<category><![CDATA[yazıcı]]></category>

		<guid isPermaLink="false">http://www.seyhan.biz/?p=328</guid>
		<description><![CDATA[Solaris sistemlerde komut satırından printer tanımlama ve silme işlemini aşağıda adım adım anlatmaya çalıştım. Hem network printerlar hem de windows paylaşımlı printerların nasıl ekleneceği konusunda bilgileri bu yazıda bulabilirsiniz. Kurulum için: #lpadmin -p yazici_adi -v /dev/null -m netstandard -o dest=ip_adresi #accept yazici_adi #enable yazici_adi Kurulum sonrasında dökümanın ilk sayfasında default olarak banner gelmesini engellemek için [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">Solaris sistemlerde komut satırından printer tanımlama ve silme işlemini aşağıda adım adım anlatmaya çalıştım. Hem network printerlar hem de windows paylaşımlı printerların nasıl ekleneceği konusunda bilgileri bu yazıda bulabilirsiniz.</div>
<div><span id="more-328"></span></div>
<div id="_mcePaste"><strong><span style="text-decoration: underline;">Kurulum için:</span></strong></div>
<div><strong><br />
</strong></div>
<div><strong><span style="font-weight: normal;"></p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #ededff; font-size: 11px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; width: 525px; clear: both; padding: 11px; margin: 0px; border: 1px solid #dadada;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">
<div id="_mcePaste">#lpadmin -p yazici_adi -v /dev/null -m netstandard -o dest=ip_adresi</div>
<div id="_mcePaste">#accept yazici_adi</div>
<div id="_mcePaste">#enable yazici_adi</div>

</span></pre>
<div></div>
<p></span></strong></div>
<div id="_mcePaste"></div>
<div id="_mcePaste">Kurulum sonrasında dökümanın ilk sayfasında default olarak banner gelmesini engellemek için solaris sunucuda<strong>/etc/lp/interfaces</strong> dizinindeki printer adında olan interface dosyasının içerisinde;</div>
<div></div>
<div id="_mcePaste"><strong>nobanner=no</strong> şeklindeki satırı <strong>nobanner=yes</strong> şeklinde değiştirebiliriz.</div>
<div></div>
<div id="_mcePaste"><strong><span style="text-decoration: underline;">Silmek için :</span></strong></div>
<div></div>
<div><strong><span style="font-weight: normal;"></p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #ededff; font-size: 11px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; width: 525px; clear: both; padding: 11px; margin: 0px; border: 1px solid #dadada;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">
<div id="_mcePaste">lpadmin -x yazici_adi</div>

</span></pre>
<p></span></strong></div>
<div id="_mcePaste"></div>
<div id="_mcePaste"><strong><span style="text-decoration: underline;">Network Printeri Tanıtmak Için ( Windows PC arkasındaki printer için) :</span></strong></div>
<div><strong><br />
</strong></div>
<div id="_mcePaste">Bu işlem için öncelikle Print server olarak seçilen NT üzerinde veya onun dahil olduğu work group içindeki bir PC ye takılı printer tanımlı olmalı ve NT üzerinden share edilmelidir.</div>
<div></div>
<div id="_mcePaste"><strong>1-Solaris Tarafında :</strong></div>
<div></div>
<div id="_mcePaste"><strong>/etc/hosts</strong> dosyası içine print server yapmak istediğiniz NT sistemin server ismini yazınız.</div>
<div></div>
<div><strong><span style="font-weight: normal;"></p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #ededff; font-size: 11px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; width: 525px; clear: both; padding: 11px; margin: 0px; border: 1px solid #dadada;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">
<div id="_mcePaste"><strong><span style="font-weight: normal;">
<div id="_mcePaste"># lpsystem -t bsd NT_nin adı (Hosts altında yazanla aynı olamalı)</div>
<div id="_mcePaste"># lpadmin -p Printer_adi -s NT_nin adi!NTdeki_share_adi -I any</div>

</span></strong></div>

</span></pre>
<p></span></strong></div>
<div id="_mcePaste"></div>
<div id="_mcePaste"><strong>2-Windows Tarafında :</strong></div>
<div><strong><br />
</strong></div>
<div id="_mcePaste">Printerin share edilen ismi bizim için önemli yukarıda bahsettiğim NTdeki_share_adi yerine bu ismi gireceğiz.</div>
<div id="_mcePaste">Windows tarafında print spooler ve tcp-ip print server service&#8217;i açık ve çalışıyor olmalı.</div>
<div></div>
<div id="_mcePaste">Kolay Gelsin</div>

<p class="sayac_bilgi">Bu yazı toplamda 463, bugün ise 0 kez görüntülenmiş. Son okunma tarihi 05.09.2010</p>
<h4  class="related_post_title">Benzer Yazılar</h4><ul class="related_post"><li><a href="http://www.seyhan.biz/index.php/2009/12/04/kuyruksil/" title="Kuyruksil">Kuyruksil</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.seyhan.biz/index.php/2010/05/14/solaris-sistemlerde-printer-tanimlama/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kuyruksil</title>
		<link>http://www.seyhan.biz/index.php/2009/12/04/kuyruksil/</link>
		<comments>http://www.seyhan.biz/index.php/2009/12/04/kuyruksil/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 11:13:09 +0000</pubDate>
		<dc:creator>Seyhan Tekelioglu</dc:creator>
				<category><![CDATA[Scriptlerim]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[kuyruk]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[spool]]></category>

		<guid isPermaLink="false">http://www.seyhan.biz/?p=257</guid>
		<description><![CDATA[Linux&#8217;ta tanımlı printerlarda kuyruk temizlemeye yarar. Kullanımı kolaydır. kuyruksil yazıp bir boşluk bırakın ve printer adını yazın. O printer&#8217;ın kuyruğunda bekleyen tüm talepler silinecektir. Sadece kuyruksil yazarsanız sistemde kayıtlı printerların listesini verir. #!/bin/bash E_NO_ARGS=65 if [ $# -eq 0 ] then echo &#8220;##############################################&#8221; echo &#8220;#                kuyruksil     [...]]]></description>
			<content:encoded><![CDATA[<p>Linux&#8217;ta tanımlı printerlarda kuyruk temizlemeye yarar. Kullanımı kolaydır. <strong>kuyruksil </strong>yazıp bir boşluk bırakın ve printer adını yazın. O printer&#8217;ın kuyruğunda bekleyen tüm talepler silinecektir. Sadece <strong>kuyruksil </strong>yazarsanız sistemde kayıtlı printerların listesini verir.<br />
<span id="more-257"></span></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#!/bin/bash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">E_NO_ARGS=65</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if [ $# -eq 0 ]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">then</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;##############################################&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#                kuyruksil                   #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#                                            #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#     Printer Kuyruk Temizleme Scripti       #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#                                            #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#        Son Guncelleme : 22.01.2008         #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#                                            #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;#         (c)2008  Seyhan Tekelioglu         #&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;##############################################&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;Scriptin Kullanimi:&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;./kuyruksil &lt;printer_adi&gt;&#8221;<span style="white-space: pre;"> </span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;Printer Listesi:&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">lpstat -a # Sistemde tanimli printerlar listelenir.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">exit $E_NO_ARGS</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">fi</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">lpstat $1 &gt; print_list  # Kuyrukta bekleyen istekler print_list dosyasina aktarilir.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">declare -a ARRAY # Kuyrul listesini saymak icin aralik tanimlanir.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">exec 2&lt;print_list</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">let count=0</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">while read LINE &lt;&amp;2; do</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ARRAY[$count]=$LINE</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">((count++))</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo `cancel $LINE` # Silme islemi yapilir.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;$LINE &#8211;&gt; SILINDI!&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">done</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo `rm print_list` # print_list dosyasi silinir.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo TOPLAM SILINEN : ${#ARRAY[@]} # Kuyruktan silinen istek sayisi yazdirilir.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;(c)2008 Seyhan Tekelioglu&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">echo &#8220;&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">exec 2&gt;&amp;-</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">exit 0</div>
<p><span style="font-family: 'Lucida Grande', Verdana, 'Bitstream Vera Sans', Arial, sans-serif; line-height: 22px; color: #555555;"></p>
<pre style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #ededff; font-size: 11px; line-height: 1.3em; overflow-x: auto; overflow-y: auto; width: 525px; clear: both; background-position: initial initial; padding: 11px; margin: 0px; border: 1px solid #dadada;">#!/bin/bash

E_NO_ARGS=65

if [ $# -eq 0 ]
then
  echo "##############################################"
  echo "#                kuyruksil                   #"
  echo "#                                            #"
  echo "#     Printer Kuyruk Temizleme Scripti       #"
  echo "#                                            #"
  echo "#        Son Guncelleme : 22.01.2008         #"
  echo "#                                            #"
  echo "#         (c)2008  Seyhan Tekelioglu         #"
  echo "##############################################"
  echo ""
  echo "Scriptin Kullanimi:"
  echo ""
  echo "./kuyruksil &lt;printer_adi&gt;"
  echo ""
  echo "Printer Listesi:"
  echo ""
  lpstat -a # Sistemde tanimli printerlar listelenir.
  echo ""

  exit $E_NO_ARGS
fi  

lpstat $1 &gt; print_list  # Kuyrukta bekleyen istekler print_list dosyasina aktarilir.

declare -a ARRAY # Kuyrul listesini saymak icin aralik tanimlanir.

exec 2&lt;print_list
let count=0

while read LINE &lt;&amp;2; do

    ARRAY[$count]=$LINE
    ((count++))

echo `cancel $LINE` # Silme islemi yapilir.

echo "$LINE --&gt; SILINDI!"

done

echo `rm print_list` # print_list dosyasi silinir.

echo ""
echo TOPLAM SILINEN : ${#ARRAY[@]} # Kuyruktan silinen istek sayisi yazdirilir.
echo ""
echo "(c)2008 Seyhan Tekelioglu"
echo ""

exec 2&gt;&amp;-

exit 0</pre>
<p></span></p>
<p>Scripti indirmek için <a href="http://www.seyhan.biz/scripts/kuyruksil.rar">tıklayın</a>.</p>

<p class="sayac_bilgi">Bu yazı toplamda 531, bugün ise 0 kez görüntülenmiş. Son okunma tarihi 05.09.2010</p>
<h4  class="related_post_title">Benzer Yazılar</h4><ul class="related_post"><li><a href="http://www.seyhan.biz/index.php/2009/12/04/sisman/" title="Sisman">Sisman</a></li><li><a href="http://www.seyhan.biz/index.php/2010/06/07/linux-uzerine-oracle-e-business-suite-11-5-10-2-kurulumu/" title="Linux Üzerine Oracle E-Business Suite 11.5.10.2 Kurulumu">Linux Üzerine Oracle E-Business Suite 11.5.10.2 Kurulumu</a></li><li><a href="http://www.seyhan.biz/index.php/2010/05/14/solaris-sistemlerde-printer-tanimlama/" title="Solaris Sistemlerde Printer Tanımlama">Solaris Sistemlerde Printer Tanımlama</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.seyhan.biz/index.php/2009/12/04/kuyruksil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
