<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>initd &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/initd/</link>
	<description>Feed of posts on WordPress.com tagged "initd"</description>
	<pubDate>Sun, 12 Oct 2008 21:50:14 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Добавления в debian скрипта в автозагрузку.]]></title>
<link>http://rabidlinux.wordpress.com/?p=9</link>
<pubDate>Wed, 08 Oct 2008 07:43:52 +0000</pubDate>
<dc:creator>rabidlinux</dc:creator>
<guid>http://rabidlinux.it.wordpress.com/2008/10/08/%d0%b4%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f-%d0%b2-debian-%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82%d0%b0-%d0%b2-%d0%b0%d0%b2%d1%82%d0%be%d0%b7%d0%b0%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d1%83/</guid>
<description><![CDATA[В начале скрипта:
### BEGIN INIT INFO
# Provides:          defaultdaemon
# Required-St]]></description>
<content:encoded><![CDATA[<p><span style="color:#000000;">В начале скрипта:</span></p>
<pre><span style="color:#000000;">### BEGIN INIT INFO
# Provides:          defaultdaemon
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO</span></pre>
<p><span style="color:#000000;">После этого</span></p>
<pre><span style="color:#000000;">update-rc.d имя defaults</span></pre>
<p><span style="color:#000000;">Для удаления скрипта из автозагрузки</span></p>
<pre><span style="color:#000000;">update-rc.d -f имя remove</span></pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Time Up Dude ver1.01]]></title>
<link>http://tuxomaniac.wordpress.com/?p=55</link>
<pubDate>Sun, 21 Sep 2008 17:33:20 +0000</pubDate>
<dc:creator>Cyriac</dc:creator>
<guid>http://tuxomaniac.it.wordpress.com/2008/09/21/time-up-dude-ver101/</guid>
<description><![CDATA[Necessity is the mother of all inventions. Yes that is true. And for inventions to take place there ]]></description>
<content:encoded><![CDATA[<p>Necessity is the mother of all inventions. Yes that is true. And for inventions to take place there should be a motivator.</p>
<p>I had very bad HDD crashes recently and i think the problem is the extreme use of my system which is on almost for 22 hrs a day on holidays and 14hrs on weekdays.</p>
<p>So i decided to make a tool to notify me when it is 1hr of use and give me options to shutdown and continue using.<br />
This was the first thing i did after installing an OS on the replaced HDD this time. My of the insipriation for trying it out is my senior at college <a href="http://sriunplugged.blogspot.com">srijith</a>.</p>
<p>He also has a similar tool but more better.<br />
So here goes the stuff.</p>
<p>my username is cyriac<br />
and i belong to a group script on my system.</p>
<p>Basic things to do prior to working my script.</p>
<p>edit the sudoers file.<br />
log in as root<br />
<code>visudo</code><br />
add the line<br />
<code>%script ALL=NOPASSWD: ALL</code></p>
<p>note that i belong to the group script<br />
now create a folders in the home directory with names /logs and /logs/timeupdude</p>
<p><code>mkdir ~/logs/timeupdude -p</code></p>
<p>make a textfile with name timeupdude<br />
and paste the code below.</p>
<p><code>work=TRUE<br />
echo "60" &#62; /home/cyriac/logs/timeupdude/testf<br />
while [ $work = TRUE ]<br />
do<br />
tt=`cat /home/cyriac/logs/timeupdude/testf`<br />
if [ $tt -eq 0 ]<br />
then<br />
ans=`zenity - -title "TIME UP DUDE" - -text "YOUR UPTIME IS OVER AN HOUR NOW " - -list - -radiolist - -column "SELECTION" - -column "ACTION" False SHUTDOWN True CONTINUE_WORKING`<br />
if [ $ans = CONTINUE ]<br />
then<br />
echo "60" &#62; /home/cyriac/logs/timeupdude/testf<br />
else<br />
sudo shutdown -ah now<br />
fi<br />
else<br />
sleep 60<br />
tt=`expr $tt - 1`<br />
echo $tt&#62; /home/cyriac/logs/timeupdude/testf<br />
fi<br />
done</code></p>
<p>Save the file and make it excec by</p>
<p><code>chmod +x timeupdude</code></p>
<p>copy the file to /etc/init.d<br />
and add it to the boot up</p>
<p><code>update-rc.d timeupdude defaults</code></p>
<p>Now restart the computer and the timeupdude is on the run..<br />
The tool first shows the screen below when it is 1hr.</p>
<p><a href="http://tuxomaniac.wordpress.com/files/2008/09/untitled.jpg"><img class="alignnone size-full wp-image-57" title="TimeUpDude_v1.01" src="http://tuxomaniac.wordpress.com/files/2008/09/untitled.jpg" alt="" width="318" height="236" /></a></p>
<p>If SHUTDOWN is pressed the system shuts down else if CONTINUE_WORKING is pressed you can continue working until this window again pops up in 30mins</p>
<p>You can also edit the time by scannin my script.<br />
And this script works with Gnome machines only.</p>
<p>Please note that the options in the zenity needs to be - - ie minusminus. not --<br />
Will come up with a new version with the ideas my `guru`;) suggested.. :P</p>
<p><a href="http://tuxomaniac.wordpress.com/2008/09/23/time-up-dude-ver2">New code available</a> </p>
<p>Please leave comments so that i can find mistakes i made and improve.. :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Como instalar no Ubuntu o suporte imap no PHP]]></title>
<link>http://patrickespake.wordpress.com/?p=112</link>
<pubDate>Thu, 28 Aug 2008 19:10:39 +0000</pubDate>
<dc:creator>patrickespake</dc:creator>
<guid>http://patrickespake.it.wordpress.com/2008/08/28/como-instalar-no-ubuntu-o-suporte-imap-no-php/</guid>
<description><![CDATA[Para instalar no Ubuntu o suporte imap no PHP, devemos digitar no shell:


sudo apt-get install php5]]></description>
<content:encoded><![CDATA[<p>Para instalar no Ubuntu o suporte imap no PHP, devemos digitar no shell:</p>
<p>[sourcecode language="php"]<br />
sudo apt-get install php5-imap<br />
[/sourcecode]</p>
<p>Depois da instalação é necessário reiniciar o Apache:</p>
<p>[sourcecode language="php"]<br />
sudo /etc/init.d/apache2 restart<br />
[/sourcecode]</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Django FastCGI init.d How To]]></title>
<link>http://jgeewax.wordpress.com/?p=32</link>
<pubDate>Mon, 28 Jul 2008 19:49:48 +0000</pubDate>
<dc:creator>JJG</dc:creator>
<guid>http://jgeewax.it.wordpress.com/2008/07/28/django-fastcgi-initd-how-to/</guid>
<description><![CDATA[Lately I&#8217;ve been working a lot with the Django web framework and while there are tons of resou]]></description>
<content:encoded><![CDATA[<p>Lately I've been working a lot with the <a href="http://www.djangoproject.com" target="_blank">Django web framework</a> and while there are tons of resources for Django itself, the process of getting a full stack up and running on a remote server is not as well documented so I figured I'd share one of the challenges I just finished dealing with.</p>
<p>I have a VPS that hosts my Django application via FastCGI behind nginx on Ubuntu 7.10. Nginx comes with an init.d script which starts it at boot time (for me on Ubuntu it runs as /etc/rc5.d/S20nginx -&#62; /etc/init.d/nginx) but I was having to turn the Django app on (via FastCGI) every time the server was rebooted. Since the only reason nginx runs was for my Django app, I wanted the app to start up just like nginx does so that on a reboot, server crash, etc I don't need to ssh in and restart the app. To do this, I started with the posting on the Django wiki (<a href="http://code.djangoproject.com/wiki/InitdScriptForLinux" target="_blank">http://code.djangoproject.com/wiki/InitdScriptForLinux</a>), and then tweaked it for my own purposes, mainly: one single Django app.</p>
<p>The idea here is that I'd simply run `/etc/init.d/my_django_app start` and be done with it while the server itself would do this automatically when it boots up. Here is what I did to let me do this.</p>
<ol>
<li>Tweaked the init.d script, you can find it here:<br />
<a href="http://static.geewax.org/my_django_app" target="_blank">http://static.geewax.org/my_django_app</a></li>
<li>Copied that script into `/etc/init.d/my_django_app`</li>
<li>Ran `update-rc.d my_django_app defaults`</li>
<li>Rebooted the machine to test it out</li>
</ol>
<p>Note that the update-rc.d (I'm told) is only for Ubuntu (or Debian-like) systems.</p>
<p>Now, if I wanted to run more than one app, I can copy the script to a different name and follow the procedure again which lets me do fine-grained application enabling/disabling of Django services should the need arise.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[OS Startup Process (HP-UX)]]></title>
<link>http://administratosphere.wordpress.com/2008/01/15/os-startup-process-hp-ux/</link>
<pubDate>Tue, 15 Jan 2008 10:00:45 +0000</pubDate>
<dc:creator>ddouthitt</dc:creator>
<guid>http://administratosphere.it.wordpress.com/2008/01/15/os-startup-process-hp-ux/</guid>
<description><![CDATA[Each UNIX-based operating system seems to take a turn at creating a unique and different startup pro]]></description>
<content:encoded><![CDATA[<p>Each UNIX-based operating system seems to take a turn at creating a unique and different startup process, and HP-UX is no different than the others.</p>
<p>The  /etc/inittab is a typical inittab file, but as installed doesn't contain any comments to explain its entries.  There is, however, a decent description in the man page <strong>inittab(4)</strong>.</p>
<p>To configure the startup, all the parameters can be found in files in the /etc/rc.config.d directory; this directory is read by /etc/rc.config.  Some startup programs read their configuration files directly, and some use /etc/rc.config to read all files.</p>
<p>The startup initialization files are found in /sbin/init.d (which is perhaps unlike most).  /sbin/rc is run to begin the startup scripts.  As mentioned, these files are in /sbin/init.d, but they are run from /sbin/rc[0-9].d directories.  These directories will contain links to files in /sbin/init.d.  Across all of these directories, there only needs to be two files: one to start the daemon in the right runlevel, and one in the next lower runlevel to stop it.</p>
<p>For example, consider the cron daemon:</p>
<p><code># ls -1Fd /sbin/rc*.d/*cron<br />
/sbin/rc1.d/K270cron@<br />
/sbin/rc2.d/S730cron@</code></p>
<p>(First a note about the options to ls: -1 means list only filenames, -F adds the filetype designator at the end of the filename, and -d lists directories and not their contents.)</p>
<p>When HP-UX starts up (or changes to a higher runlevel) it runs start scripts (the <code>S###</code> scripts) as it goes from one level to the next until it reaches the desired level.  When going to a lower runlevel, the system runs the kill scripts (the <code>K###</code> scripts) in order to stop processes.</p>
<p>The two listed files above (K270cron and S730cron) follow the <code>[SK][0-9][0-9][0-9]script</code> convention, and the file these link to is accordingly /sbin/init.d/cron.  The numbers help to define the order that the scripts are run in; scripts are run in alphabetic order as defined by the (system) shell.</p>
<p>The startup scripts themselves are somewhat typical: a first parameter of <i>start </i>will start the service; a first parameter of <i>stop </i>will stop the service.  Two other expected parameters are <i>start_msg </i>and <i>stop_msg</i>; these are used during the startup to provide a decently readable account of what is going on.</p>
<p>The scripts should return one of the following values as its exit value:</p>
<ul>
<li><b>0.</b>  Success!</li>
<li><b>1.</b> Failure.</li>
<li><b>2.</b> Noop - translates to N/A (not applicable) during startup; script did nothing.</li>
<li><b>3.</b> Script will cause a reboot (and will display /etc/rc.bootmsg if it contains anything).</li>
<li><b>4 and up.</b>  Treated same as 1.</li>
</ul>
<p>All of the output from the startup and shutdown scripts is stored in /etc/rc.log (and the previous rc.log is moved to rc.log.old).  Only the last two startup logs are kept.  Here is a snippet of an rc.log:</p>
<p><code>Old /etc/rc.log moved to /etc/rc.log.old<br />
&#160;<br />
**************************************************<br />
HP-UX Start-up in progress<br />
Thu Dec 13 13:56:28 CST 2007<br />
**************************************************<br />
&#160;<br />
Configure system crash dumps<br />
Output from "/sbin/rc1.d/S080crashconf start":<br />
----------------------------<br />
crashconf: concurrent mode not supported on this platform<br />
EXIT CODE: 0<br />
&#160;<br />
Removing old vxvm files<br />
Output from "/sbin/rc1.d/S090sw_clean_vxvm start":<br />
----------------------------<br />
&#160;<br />
VxVM INFO V-5-2-3360 VxVM device node check<br />
Output from "/sbin/rc1.d/S091vxvm-nodes-check start":<br />
----------------------------<br />
&#160;<br />
VxVM INFO V-5-2-3362 VxVM general startup<br />
Output from "/sbin/rc1.d/S092vxvm-startup start":<br />
----------------------------</code></p>
<p>More information can be had on the <strong>rc(1m)</strong> and <strong>rc.config(4)</strong> man pages.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux: dove stanno gli script eseguiti all'avvio del sistema.]]></title>
<link>http://olatitant.wordpress.com/2007/12/23/dove-si-nascondono-gli-script-eseguiti-alavvio-del-sistema/</link>
<pubDate>Sun, 23 Dec 2007 19:18:51 +0000</pubDate>
<dc:creator>olatitant</dc:creator>
<guid>http://olatitant.it.wordpress.com/2007/12/23/dove-si-nascondono-gli-script-eseguiti-alavvio-del-sistema/</guid>
<description><![CDATA[
In linux tutti gli script che vengono eseguiti all&#8217;avvio del sistema e non della singola sess]]></description>
<content:encoded><![CDATA[<div style="font-family:Sans-serif;line-height:140%;">
<p align="justify"><img class="alignright" style="border:1px solid black;float:right;margin-left:12px;margin-right:12px;" src="http://www.atleticanet.it/public/news/images/Img4255.jpg" alt="" width="234" height="155" />In linux tutti gli script che vengono eseguiti all'avvio del sistema e non della singola sessione, si trovano in una speciale directory, per niente nascosta, ma modificabile solamente come root :</p>
<blockquote><p><strong>/etc/init.d/</strong></p></blockquote>
<p align="justify">Chi non ha qualche scaramuccia col pinguino scagli il primo script! Beh personalmente ho avuto problemi relativi al caricamento automatico di alcuni moduli all'avvio del sistema. I miei problemi erano relativi al fatto che non riuscivo a gestire i governor per lo scaling in automatico all'accensione, ma dovevo invece andare a caricare manualmente dei moduli, e non riuscivo a caricare i moduli driver per la webcam integrata nel pannello dell'  <a class="zem_slink" title="Liquid crystal display" rel="wikipedia" href="http://en.wikipedia.org/wiki/Liquid_crystal_display"><span style="text-decoration:underline;">LCD</span></a> del mio <a class="zem_slink" title="Asus" rel="homepage" href="http://www.asus.com/" target="_blank"><span style="text-decoration:underline;">Asus</span></a>. Mi sono quindi fatto uno script chiamato servizi personali, e dopo averne modificato i privilegi, usando i privilegi di root, l'ho copiato proprio nella cartella sopra citata. Supponiamo che lo script si trovi nella cartella Scrivania, e che si chiami servizi_personali, ecco cosa ho fatto per cambiarne i privilegi e copiarlo:</p>
<blockquote><p><strong>raffaele@raffaele-laptop:~$ cd Scrivania<br />
raffaele@raffaele-laptop:~$ <a class="zem_slink" title="Sudo" rel="homepage" href="http://www.sudo.ws/" target="_blank"><span style="text-decoration:underline;">sudo</span></a> chmod 755 servizi_personali<br />
raffaele@raffaele-laptop:~$ sudo cp servizi_personali /etc/init.d/servizi_personali</strong></p></blockquote>
<div style="text-align:center;"><img class="alignleft" style="margin-left:12px;margin-right:12px;float:left;" src="http://bp0.blogger.com/_0nS_RROBhp4/R2zJ_wS_kgI/AAAAAAAAAC0/TIspF_2vN-U/s400/Schermata-Boot-Up+Manager.png" alt="" width="294" height="212" /></div>
<p align="justify">Bisogna poi settare lo script per essere eseguito all'avvio. Io personalmente l'ho fatto con il programma bum, che deve essere eseguito come root, molto intuitivo nel suo uso. Una schermata di come tale programma si presenta è mostrata nell'immagine riportata. Spero di essere risultato abbastanza chiaro.</p>
<p align="justify">
</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hamachi VPN on Ubuntu]]></title>
<link>http://switchbuntu.wordpress.com/2007/10/18/hamachi-vpn-on-ubuntu/</link>
<pubDate>Thu, 18 Oct 2007 22:53:35 +0000</pubDate>
<dc:creator>Tommy</dc:creator>
<guid>http://switchbuntu.it.wordpress.com/2007/10/18/hamachi-vpn-on-ubuntu/</guid>
<description><![CDATA[I finally have gHamachi and the underlying Hamachi working on my Ubuntu setup.  It mostly just work]]></description>
<content:encoded><![CDATA[<p>I finally have gHamachi and the underlying Hamachi working on my Ubuntu setup.  It mostly just worked, but was a pain in the arse at some points.  Anyway, I realized that I didn't know how to make things startup automatically in Ubuntu.  In Windows, of course, you drop a shortcut to whatever you want running in the "Startup" folder under Start Menu-&#62;Programs-&#62;Startup.  What's the equivalent in Ubuntu (or Linux generally) for that matter?</p>
<p>According to the CompuTech Group, it looks like dropping something in /etc/init.d is the equivalent of the Windows Startup folder.  Anyway, I hope I can get gHamachi and Pidgin to autostart upon login.</p>
<p><a href="http://www.computechgroup.com/?p=360">The CompuTech Group » Blog Archive » HOWTO: Setup Hamachi VPN on Ubuntu</a></p>
<p>Here's to tinkering...</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Como configurar um firewall iptables no Ubuntu usando um script de Init?]]></title>
<link>http://allangarcia.wordpress.com/2007/10/04/como-configurar-um-firewall-iptables-no-ubuntu-usando-um-script-de-init/</link>
<pubDate>Thu, 04 Oct 2007 03:31:59 +0000</pubDate>
<dc:creator>Allan Garcia</dc:creator>
<guid>http://allangarcia.it.wordpress.com/2007/10/04/como-configurar-um-firewall-iptables-no-ubuntu-usando-um-script-de-init/</guid>
<description><![CDATA[ATENÇÃO!!! Estou migrando o conteúdo deste site para http://www.jornaldojerimum.com.br/, por favo]]></description>
<content:encoded><![CDATA[<p><i><b>ATENÇÃO!!!</b> Estou migrando o conteúdo deste site para <a href="http://www.jornaldojerimum.com.br/">http://www.jornaldojerimum.com.br/</a>, por favor atualize seu bookmark para este novo endereço!</i></p>
<p><i>Para acessar diretamente este artigo no novo endereço clique no link abaixo:</i></p>
<p><a href="http://www.jornaldojerimum.com.br/2007/10/27/como-instalar-a-placa-de-som-da-intel-snd-hda-intel-no-ubuntu-710-gutsy/"><i></i></a><i><a href="http://www.jornaldojerimum.com.br/2007/10/04/como-configurar-um-firewall-iptables-no-ubuntu-usando-um-script-de-init/">http://www.jornaldojerimum.com.br/2007/10/04/como-configurar-um-firewall-iptables-no-ubuntu-usando-um-script-de-init/</a></i></p>
<p><b><font color="#800000"><i>O conteúdo deste artigo já foi migrado para o link citado, favor acessar no novo endereço!</i></font></b></p>
<p>Atenciosamente,</p>
<p><b>Allan Garcia</b></p>
]]></content:encoded>
</item>

</channel>
</rss>
