<?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>cygwin &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/cygwin/</link>
	<description>Feed of posts on WordPress.com tagged "cygwin"</description>
	<pubDate>Tue, 07 Oct 2008 16:09:41 +0000</pubDate>

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

<item>
<title><![CDATA[DESpiorando* o Windows]]></title>
<link>http://ffelix.wordpress.com/?p=198</link>
<pubDate>Fri, 03 Oct 2008 04:37:50 +0000</pubDate>
<dc:creator>Felix</dc:creator>
<guid>http://ffelix.pl.wordpress.com/2008/10/03/despiorando-o-windows/</guid>
<description><![CDATA[Novamente vendo as estatísticas do blog, vejo que alguém caiu aqui procurando por: &#8220;msdos op]]></description>
<content:encoded><![CDATA[<p>Novamente vendo as estatísticas do blog, vejo que alguém caiu aqui procurando por: "msdos opensource". Pelo que eu tenho de experiência posso indicar algumas coisas 'semelhantes':</p>
<p><strong><a title="FreeDOS" href="http://www.freedos.org/" target="_blank">FreeDOS</a> - </strong>é um Sistema Operacional 'DOS-compatível', e livre, eu até tenho ele perdido aqui em algum lugar, mas pelo pouco que vi é um verdadeiro 'clone' do que se propõe.</p>
<p><strong><a title="wsh" href="http://wsh.sourceforge.net/" target="_blank">WSH</a></strong> - Melhorando um pouco, o Woo Shell é uma alternativa ao cmd.exe (Prompt de Comando do WIndows). É diretamente inspirado pelos shell's Linux como bash, csh e xterm. Ele lhe permite entre outras coisas a execução de comandos com pipes e sequências. (<em>Ainda não o testei, encontrei através de pesquisas</em>)</p>
<p><strong><a title="Cygwin" href="http://www.cygwin.com/" target="_blank">Cygwin</a></strong> - Sem dúvida o melhor no pior (Explicando: um Línux dentro do Windows)! Usei ele em meus primórdios de Linux, quando ainda não conseguia instalar aquele bendito Conectiva 8 sem *dar pau* no micro. Foi através dele que eu conheci o <a title="Verde" href="http://aurelio.net" target="_blank">Aurélio</a> <span style="text-decoration:line-through;">virtualmente falando</span>, pois ele tem <a title="Cygwin-ptBR" href="http://aurelio.net/cygwin/" target="_blank">aqui</a> um belo de um manual explicando o que é o cygwin e como utilizá-lo. Só resumindo um pouco (devidamente copiado do Aurélio.. hehehe):</p>
<p>"O Cygwin é um programa que se instala no Windows, trazendo o poder da telinha preta do Linux para o sistema das janelas. Não é preciso "dual boot" ou instalar o Linux, pois o Cygwin roda junto com o Windows. É mágica!</p>
<p>Então vá lá, se você procura por um MS-DOS livre (não entendi o porquê, mas tudo bem); melhorar o seu cmd (fazer um neologismo como despiorando ou dizer 'melhorar o cmd'... o que é pior? Credo, apelei!) ou ter um 'gostinho' de Linux dentro do Windows, deixo aí algumas alternativas.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cygwin blues #cygwin]]></title>
<link>http://webhat.wordpress.com/2008/09/30/cygwin-blues-cygwin/</link>
<pubDate>Tue, 30 Sep 2008 12:53:14 +0000</pubDate>
<dc:creator>webhat</dc:creator>
<guid>http://webhat.pl.wordpress.com/2008/09/30/cygwin-blues-cygwin/</guid>
<description><![CDATA[I decided to use cygwin as a development shell, as I didn&#8217;t feel like building a redhat VM. I ]]></description>
<content:encoded><![CDATA[<p>I decided to use cygwin as a development shell, as I didn't feel like building a redhat VM. I installed autoconf, automake, gcc and other handy build tools. I didn't realize that cygwin doesn't have make or libtool	as dependencies.</p>
<p>Honestly!
<p><img src="http://freehogg.wordpress.com/files/2006/04/technorati.gif" alt="Technorati" /> technorati tags: <a href="http://del.icio.us/webhat/gnu" rel="tag">gnu</a>, <a href="http://del.icio.us/webhat/linux" rel="tag">linux</a>, <a href="http://del.icio.us/webhat/cygwin" rel="tag">cygwin</a>, <a href="http://del.icio.us/webhat/redhat" rel="tag">redhat</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cygwin]]></title>
<link>http://ohilthegreat.wordpress.com/?p=30</link>
<pubDate>Wed, 24 Sep 2008 18:00:09 +0000</pubDate>
<dc:creator>ohilthegreat</dc:creator>
<guid>http://ohilthegreat.pl.wordpress.com/2008/09/24/cygwin/</guid>
<description><![CDATA[Not many may know this, but I gathered and shared the Cygwin versions of TKgate (in 2nd yr) and MAGI]]></description>
<content:encoded><![CDATA[<p>Not many may know this, but I gathered and shared the Cygwin versions of TKgate (in 2nd yr) and MAGIC, IRSIM, NGSPICE (in 3rd yr)... second year was fun - I had to download the installs quite a few times before I got it right... Third year was even better - I used IDM spider :) Anyways, it helped quite a few people I guess... I installed it myself in some rooms...</p>
<p>But I guess the best part was when I saw - during an ISTE event, that some junior's laptop was running TKGATE... now obviously I thought that someone might have given out a new distribution, but when I saw the readme - I realized I had written it exactly a year ago :) :)</p>
<p>Stuff continues to be used... feels good... thanks</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cygwin - a little bundle of goodies]]></title>
<link>http://alexlexecorp.wordpress.com/?p=430</link>
<pubDate>Mon, 22 Sep 2008 18:49:35 +0000</pubDate>
<dc:creator>Alex</dc:creator>
<guid>http://lexecorp.com/2008/09/23/cygwin-a-little-bundle-of-goodies/</guid>
<description><![CDATA[ There is something brilliant about Cygwin. This evening I decided to upgrade my Cygwin install to v]]></description>
<content:encoded><![CDATA[<p><a href="http://cygwin.com/"><img class="alignleft size-full wp-image-429" title="cygwin-icon" src="http://alexlexecorp.wordpress.com/files/2008/09/cygwin-icon.gif" alt="" width="28" height="28" /></a> There is something brilliant about Cygwin. This evening I decided to upgrade my Cygwin install to version 1.5.25-15. I hadn't upgraded for a while and I currently have a very fast link which I have been itching to test. My last update was care of my esteemed colleague Bob Brown of <a href="http://www.transentia.com.au">Transentia</a> - a Java guru (and more) whom I had the privilege of working with whilst contracting at Energex.</p>
<p>Ah yes, before I get distracted, there is something reassuring in having a quality development environment on my Vista (yes I am biased). My bias results from my many years avoiding the awful early years of DOS/Windows - writing a new network driver and watching Windows reboot on each test was a memory I will not forget.  Well it did download incredibly fast, and equally installed so. And I always test gcc just to reassure myself that all is OK, and this time as before, Cygwin has installed perfectly.</p>
<p>OK, I should say that there is much more to Cygwin than just another UNIX like environment to work with. I had on one project with very little time available - aren't they all - decided to use as many Open Source components as I could to get the project through the door. I also had a more trying requirement, to deliver to three platforms - Windows, RedHat Linux and Mac OS/X.</p>
<p>Well, on that project I had to create (or find) some very complex components, one being a skew correction algorithm for scanned documents. The project owners had not allocated anything like the time required to achieve this. So, I did not have the time to write my own version, let alone do a native port of someone elses code. The code at least came with its own makefiles and had been developed on a UNIX platform. This was the first time I used Cygwin's porting capability. Well within a day I was able to create a Windows version of that project and thus keep our own project on track. Both Cygwin and the Open Source project added no cost to the project either. What could be a better recommendation than that!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to get information about Windows processes in Cygwin?]]></title>
<link>http://linuxtnt.wordpress.com/?p=506</link>
<pubDate>Mon, 22 Sep 2008 07:38:24 +0000</pubDate>
<dc:creator>BKB</dc:creator>
<guid>http://linuxtnt.pl.wordpress.com/2008/09/22/how-to-get-information-about-windows-processes-in-cygwin/</guid>
<description><![CDATA[In Cygwin I type ps aux to get a list of processes, but I&#8217;m not sure how to get a list of proc]]></description>
<content:encoded><![CDATA[<p>In Cygwin I type ps aux to get a list of processes, but I'm not sure how to get a list of processes which are running under Windows rather than Cygwin.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Technical Bliss and Cygwin]]></title>
<link>http://espressomind.wordpress.com/?p=388</link>
<pubDate>Sat, 20 Sep 2008 18:48:41 +0000</pubDate>
<dc:creator>Nicole Radziwill</dc:creator>
<guid>http://espressomind.com/2008/09/20/technical-bliss-and-cygwin/</guid>
<description><![CDATA[I&#8217;m working on a research project that involves building a &#8220;social network&#8221; from p]]></description>
<content:encoded><![CDATA[<p>I'm working on a research project that involves building a "social network" from publication data. I've collected all my data, which includes 251 source references and a little over 12,000 edges, meaning that I have thousands upon thousands of lines of text that I need to parse and interpret. But the data formats are all mangled from page to page, and I need to do a little "manual" tweaking before building my network. Oh, and did I mention that I'm on my new 4GB 64-bit Vista machine where it's hard to get a lot of things to work?</p>
<p><em>If only I could cat files and grep around a bit, and send some things to wc-l to count them...</em> that's what I was thinking. About how wonderful it would be if only I could do some simple unix stuff on my Windows machine. And then I found Cygwin, which is the nearest thing to technical bliss that I may ever have experienced.</p>
<p>It took quite a while to get Cygwin going on my machine though. In particular, I had a hard time getting Cygwin to install because Cygwin would hang on download (it seemed) for hours and hours. Here are some tips that could help you get yours installed in a fraction of the time:</p>
<ul>
<li>Run as administrator.</li>
<li>Don't download the whole thing at once. Try one package... maybe "base", first.</li>
<li>When you get the Cygwin icon on your desktop, right-click on it, go to Properties, click on the "Compatibility" tab and make sure you are running in Windows XP (Service Pack 2) compatibility mode. Some people say this isn't the safest thing, and it may mean your Cygwin installation won't work after a while. My thinking is, no problem, I'll just install it all over again when it breaks. In the meantime I can expect to get many months of happiness.</li>
<li>Double click on the Cygwin icon on your desktop to download more packages. Do them in small groups. It will be slower, but you can prevent most hangs.</li>
<li>On the screen when you select a mirror site, try to use the same one each time you get a new package. I hopped around for a while thinking maybe my install problems were a problem with a mirror, but ended up with an install-folder proliferation problem. I had much better luck with the http mirrors than the ftp mirrors, even though I had originally thought the ftp mirrors would be faster and more efficient.</li>
<li>Always choose to "Download from Internet", install for everyone, and standard Unix end-of-line characters.</li>
<li>Cygwin installs in two steps: the installer downloads files, then it prepares them to work. The first step is quick, the second step is painfully slow. On the install step, you might see what looks like an error message - "No Package" - on the Cygwin setup screen. This is not an error! Just watch to make sure the line below it... that looks like /etc/install/*.sh... is advancing from file to file. It will be SLOW but this is normal and if you can keep your impatient mouse fingers away from the "Cancel" button you should be OK.</li>
</ul>
<p>If you are like me, you will then begin your beautiful relationship with Cygwin. I can now grep and cat and nano and use wc and ping and everything else, right from my windows machine, using the part of my Vista filesystem that I've set aside to use with Cygwin. My research productivity has skyrocketed and my relationship with Vista has greatly improved as a result!!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Got Scripts?]]></title>
<link>http://linuxfud.wordpress.com/?p=270</link>
<pubDate>Fri, 12 Sep 2008 14:23:36 +0000</pubDate>
<dc:creator>brinkleybw</dc:creator>
<guid>http://linuxfud.pl.wordpress.com/2008/09/12/got-scripts/</guid>
<description><![CDATA[Yesterday, David Williams posted on ITWire’s Linux Distillery an article about how Linux is keepin]]></description>
<content:encoded><![CDATA[<p>Yesterday, David Williams posted on ITWire’s Linux Distillery an article about <a href="http://www.itwire.com/content/view/20579/1141/">how Linux is keeping Microsoft honest</a>.  The real meat begins with a discussion about <a href="http://en.wikipedia.org/wiki/Windows_PowerShell">Windows PowerShell</a>, Microsoft’s newest scripting language.  ‘New’ is a relative term, as Williams points out that the scripting concept is not only a very old one, but that the <a href="http://en.wikipedia.org/wiki/Punch_cards">punch cards</a> of computer lore could be considered the first form of <a href="http://en.wikipedia.org/wiki/Scripting">scripting</a>.  Williams points out that the Windows trend of ‘dumbing it down’, creating <a href="http://en.wikipedia.org/wiki/Graphical_user_interface">GUI</a> tools to replace thousands of keystrokes, may be reversing.  The focus of PowerShell, a <a href="http://en.wikipedia.org/wiki/Command_line_interface">CLI</a>, is to replace thousands of mouse clicks with scripts.  Williams continues with the revelation that PowerShell is becoming ‘entrenched’ in Microsoft’s server offerings, including a headless, GUI-less mode for <a href="http://en.wikipedia.org/wiki/Server_2008">Windows Server 2008</a>.  He attributes this shift in design philosophy to <a href="http://en.wikipedia.org/wiki/Linux">Linux</a>.</p>
<p>I think this is great news for Windows, because as systems grow, especially online offerings, effective system management depends on efficiency.  Ultimately, this means automating as many maintenance functions as possible.  With Linux and other *nix platforms, this has never been a problem, but the Windows CLI has been fading into obscurity for many years now.  The <a href="http://en.wikipedia.org/wiki/DOS">DOS</a> shell sat right on top of the <a href="http://en.wikipedia.org/wiki/Kernel_(computer_science)">kernel</a>, but beginning with <a href="http://en.wikipedia.org/wiki/Windows_NT">NT</a>, the ‘<a href="http://en.wikipedia.org/wiki/Command_Prompt_(Windows)">command prompt</a>’ became just another application that had to operate through various other layers, such as the oppressive NT <a href="http://en.wikipedia.org/wiki/Hardware_abstraction_layer">HAL</a>, diminishing its power.  Moreover, the range of CLI utilities remained unimpressive.  Thankfully, products such as <a href="http://www.mkssoftware.com/products/">MKS Toolkit</a>, <a href="http://www.cygwin.com/">Cygwin</a> and <a href="http://unxutils.sourceforge.net/">Sourceforge’s UnxUtils</a> have helped to fill that gap.</p>
<p>Let’s not forget that the CLI is useful for <em>far</em> more than executing OS-related functions.  In my experience, all the best software applications offer a CLI interface.  I implement systems that help <a href="http://en.wikipedia.org/wiki/Information_technology">IT</a> managers manage the activities of their staffs, including <a href="http://en.wikipedia.org/wiki/Helpdesk">helpdesk</a> and other customer issue management suites, <a href="http://en.wikipedia.org/wiki/Revision_control">source code control</a> and software media distribution centers, and project/programme management repositories.  <em>I always look for software that provides a Unix release, even if the target platform is Windows.</em>  Why?  Unix-based applications almost always include a CLI which is almost always ported to the Windows release if one exists.  Not only is the CLI of great use to me from a user’s and administrator’s perspective, but I know that the existence of a CLI usually indicates that the software has tested more thoroughly.  If an application has been designed well, then the CLI functions call the same underlying subroutines as their GUI counterparts – this allows the vendor to easily write (and more importantly, to execute) scripts for <a href="http://en.wikipedia.org/wiki/Regression_testing">regression</a> and <a href="http://en.wikipedia.org/wiki/Load_testing">load testing</a>.  <a href="http://en.wikipedia.org/wiki/Smoke_test">Nightly smoke tests</a> of new builds are possible without the maintenance of complex GUI-based <a href="http://en.wikipedia.org/wiki/Test_harness">test harnesses</a>.  Don’t misread me – the GUI must be tested, just not to the same extent as when the GUI is the only interface available.</p>
<p>Where's the FUD?  For years, Windows zealots have denounced Linux for being arcane, hard-to-use, and backward.  Heavy reliance on the CLI for administration was cited as a failure to progress (through obstinacy, ignorance or both).  Now, it appears that Microsoft is admitting that a powerful shell is indeed useful, forcing its <a href="http://en.wikipedia.org/wiki/Fanboy">fanboys </a>to dine on <a href="http://en.wikipedia.org/wiki/Eat_crow">crow </a><a href="http://en.wikipedia.org/wiki/Tartare">tartare</a>.</p>
<p>The return of a powerful shell is a step in the right direction for Windows!  Is this really due to Linux?  I wouldn’t be surprised.</p>
<p>Cheers!<br />
-Brandon</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The benefits of Linux, in Windows.]]></title>
<link>http://jkmichelsen.wordpress.com/?p=14</link>
<pubDate>Tue, 09 Sep 2008 15:35:14 +0000</pubDate>
<dc:creator>jmichelsen</dc:creator>
<guid>http://jkmichelsen.pl.wordpress.com/2008/09/09/the-benefits-of-linux-in-windows/</guid>
<description><![CDATA[Ah technology. It is so translucent and logical. There are no surprises within machines, they do wha]]></description>
<content:encoded><![CDATA[<p>Ah technology. It is so translucent and logical. There are no surprises within machines, they do what they are told, if one speaks their language, and nothing more.</p>
<p>Among those languages there are some differences. Different machines have different languages. Different languages have different dialects. Not that one is more superior than another but they all serve different purposes. The language of Windows is one that is not public to be read at will. This is called closed or proprietary source. The language controls are patented and kept secret. As I said this does not claim superiority above another, it simply serves its purpose. Windows users do not want to know how things work, or how to speak the language. They want to speak to a translator that understands them and that they understand, and have that translator speak to the machine. This enables anyone to use Windows, easily and effortlessly.</p>
<p>Linux is open source. Anyone can look into the source code, the language, and see what its all about. Not to say that anyone can understand it right away but it is there and usable at will. Again this serves its purpose. This is for those users that are tired of translations and want to speak for themselves. The users that do not want to be handed one way of doing things and told that is the way its done. Customization and creativity can live in a place such as this.</p>
<p>To the topic at hand, for those that cannot break free of the closed source all the time, there are some options out there to help ease the Linux-ache in your hearts. When confined to rooms with only Windows, a door can be found. Software that can emulate the feel of Linux on a Windows system, when for any reason one cannot use Linux.</p>
<p>I am not talking about software that makes Windows look like Linux, but can actually recreate some of the great functionality built into Linux distributions that sometime get taken for granted.</p>
<p>The first thing that I noticed when actually migrating to Linux was that it has built in snap-to function such as that one might find in Winamp. I had longed for the Winamp window snapping in all my windows since I realized that there was such a thing as windows snapping. I found a great application that can create this function, it is light, easy to use and install and works great. It is called <a title="allSnap" href="http://www.cs.toronto.edu/~iheckman/allsnap/" target="_blank">allSnap</a>, for obvious reasons.</p>
<p>After running Linux for a few days, one thing I missed when I was at work on a Windows machine again was the great 3-button mouse functionality. I do not have a 3-button mouse at work or at home. Most people that use Windows exclusively do not even know that such a thing exists. The functionality here is that using a 3-button mouse, or emulation using the scroll button on a 2-button mouse as a third button, one can copy and paste things very quickly and easily without using the keyboard or context menu (Right click menu). Just by selecting text, it is copied automatically to the clipboard and pressing the mouse wheel or third mouse button on a 3-button mouse, that text is pasted wherever the cursor is. This sounds so simple but using it for a few days or even a few hours, and you get hooked. There is a Windows application that can emulate this functionality and it is called <a title="True X mouse" href="http://fy.chalmers.se/~appro/nt/TXMouse/" target="_blank">True X-Mouse Gizmo</a>. The program also adds focus-follows-mouse and a few other great Linux functions. Now although this little program does not emulate the Linux functionality nearly as well as a true Linux system, it sure helps.</p>
<p>The last one for today is <a title="cwrsync" href="http://www.itefix.no/i2/node/10650" target="_blank">cwrsync</a> <a title="rsync" href="http://samba.anu.edu.au/rsync/" target="_blank">(based in the Linux program rsync)</a>. As the name suggests, this program is used for file synchronization. The great thing about this program is that it can not only transfer files locally from folder to folder or disk to disk, it is designed to be used over the Internet. It has its own algorithm that it uses to check a file for changes, compress the changes only and send those to the destination. So if one has a 10GB file or folder that they have in two locations, but they changed one file within that file, or edited one text document within that folder, rsync can check over the whole 10GBs and say, this little change was made, compress that data and send <em>just the change</em> to the destination. So to keep the 10GBs up to date, one does not have to copy the whole thing again. The real beauty of this program is that it runs from the command line so it can be very easily scripted and scheduled for daily backups of your most important things, or your whole system.</p>
<p>With these tools, one can manage Windows a bit easier.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[/etc/hosts file on Windows]]></title>
<link>http://linuxtnt.wordpress.com/?p=408</link>
<pubDate>Sun, 07 Sep 2008 00:07:36 +0000</pubDate>
<dc:creator>BKB</dc:creator>
<guid>http://linuxtnt.pl.wordpress.com/2008/09/07/etchosts-file-on-windows/</guid>
<description><![CDATA[/etc/hosts for Windows lives in

C:\Windows\system32\drivers\etc\hosts

The format is the same as th]]></description>
<content:encoded><![CDATA[<p>/etc/hosts for Windows lives in</p>
<pre>
C:\Windows\system32\drivers\etc\hosts
</pre>
<p>The format is the same as the Unix hosts file.<br />
On Cygwin /etc/hosts is actually a link to this file.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Getting Git-SVN to work under Cygwin]]></title>
<link>http://rip747.wordpress.com/?p=453</link>
<pubDate>Thu, 04 Sep 2008 19:49:38 +0000</pubDate>
<dc:creator>rip747</dc:creator>
<guid>http://rip747.pl.wordpress.com/2008/09/04/getting-git-svn-to-work-under-cygwin/</guid>
<description><![CDATA[This has taken me DAYS to get working and finally i got it. Here are the steps:
Download the Cgywin ]]></description>
<content:encoded><![CDATA[<p>This has taken me <strong>DAYS</strong> to get working and finally i got it. Here are the steps:</p>
<p>Download the Cgywin <a href="http://www.cygwin.com/setup.exe">setup.exe</a> from the <a href="http://www.cygwin.com/">Cygwin site</a>.</p>
<p>Next is to <strong><a href="http://git.or.cz/gitwiki/CygwinBinaryInstall">READ AND FOLLOW</a></strong> the instructions for setting up Git during the install. The instruction are at the bottom of the page entitled "Install Cygwin".</p>
<p>After the installation you will need to run <strong>"ash rebaseall"</strong> from the cygwin\bin directory in a command line in order to update Git-SVN. So open a command prompt (START -&#62; RUN -&#62; CMD) and type in cd\cygwin\bin (or whatever your cygwin installation folder is) and run <strong>"ash rebaseall"</strong>.</p>
<p>Hopefully this help someone out there</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[ASCII-Art]]></title>
<link>http://drazraeltod.wordpress.com/?p=615</link>
<pubDate>Tue, 26 Aug 2008 21:57:04 +0000</pubDate>
<dc:creator>Dr. Azrael Tod</dc:creator>
<guid>http://drazraeltod.pl.wordpress.com/2008/08/26/ascii-art/</guid>
<description><![CDATA[Immer wieder stoße ich beim täglichen Feedlesen auf Links bezüglich irgendwelcher Webdienste, die]]></description>
<content:encoded><![CDATA[<p>Immer wieder stoße ich beim täglichen Feedlesen auf Links bezüglich irgendwelcher Webdienste, die einfache Pixelbilder näherungsweise in ASCII-Art ausgeben.<!--more--></p>
<p>Wer jetzt mit dem Begriff ASCII-Art nichts anfangen kann: es handelt sich um die Idee rein mit ASCII-Zeichen Figuren zusammen zu setzen bis hin zum Zeichnen von Bildern. Dies ist vor allen in der Warez-Szene und in irgendwelchen proprietären Communities recht verbreitet. Bei ersterem um die NFOs zu verschönen und sich durch Zeichnungen um den Text, kleinere eingebettet Bildchen und Rahmen/Tabellen zum besseren Darstellen der Informationen von anderen Gruppen hervor zu heben.<br />
In Online-Communities werden diese Bildchen vor allem für Schneeball-Nachrichten missbraucht, man zeichnet irgendwelche kleinen Tierchen</p>
<p>Da ich mich während meines Studiums eine Weile recht intensiv mit derartigen Spielereien beschäfftigt hab (unter anderem in Zusammenarbeit mit Toranor) kann ich über die meisten Tools nur lachen. Sie mögen teilweise durchaus ganz nette Ergebnisse liefern, doch vieles ist einfach meilenweit entfernt von dem was mit wirklich guten Programmen möglich ist.</p>
<p>So gibt es viele Programme die unter dem Umwandeln eines Bildes einfach verstehen dass Rastergrafiken in Raster aus eingefärbten Buchstaben umgesetzt werden, evtl. bringt man es noch fertig die Grafik vorher zu skalieren um die Größe nicht ins Extreme steigen zu lassen.</p>
<p>Eine weitere Randbemerkung sei mir noch gestattet: In vielen Foren/SocNets und ähnlichem Blödsinn werden häufig beliebige Schriften verwendet um "ASCII-Art" zu erstellen. Wirklich gute und wiederverwendbare Ergebnisse erhällt man jedoch nur mit fixed-width-fonts, bei denen (wie der Name ja bereits sagt) jedes Zeichen die gleiche Breite hat. Alles andere führt nur zu Rumgefrickel, das dann auch nur mit einer bestimmten Schriftart sinnvoll anzusehen ist. (Die Nachteile sollten auf der Hand liegen.)</p>
<p>Um mal endlich zu wirklich guten Programmen zu kommen, möchte ich 2 Systeme vorstellen, mit denen man eigentlich bereits nahezu alle Anwendungen abdecken kann:</p>
<h2>Jave</h2>
<p>Bei <a href="http://www.jave.de/" target="_blank">Jave</a> (<strong>J</strong>ava <strong>A</strong>scii <strong>V</strong>ersatile <strong>E</strong>ditor) handelt es sich hauptsächlich um einen Bildeditor in Java. Man zeichnet halt mit verschiedenen Pinsel-, Stempel-, Linien-, Füll- oder Sonstwas-Werkzeugen auf eine Fläche und erzeugt auf diese Art Bilder wie man es von jedem Paint oder ähnlichem gewohnt ist. Der einzige Unterschied zu den Myriaden anderer Programme: Das Ergebnis besteht aus ASCII-Art! Jave ist dabei auch schlau genug, um z.B. aus 2 sich überschneidenden Geraden mal eben ein X oder + zu zeichnen (das ist noch der einfachste Fall, Jave beherrscht eine große Menge an wirklich beeindruckender Zeichenfunktionen, die alle unauffällig im Hintergrund ablaufen), Farbverläufe sind genausowenig ein Problem wie Freihandkurven und auch wenn einem die Gradienten des Farbverlaufes nicht Gefallen kann man seinen eigenen zusammenstellen.</p>
<p>Nebenbei unterstützt Jave noch <a href="http://www.jave.de/figlet/figlet.html" target="_blank">Figlet</a>-Schriften (ein standard für die Definition von "Schriftarten" in ASCII-Art, wird mitlerweile von einigen Programmen verstanden und es existieren wahnsinnig viele verwendbare Schriften), kann 3D-Objekte zu ASCII-Art rendern, Animationen erstellen (z.B. auch aus genannten 3D-Szenen) und diese in den verschiedensten Ausgabeformaten (wenn es sein muss auch in einem Javascript-Schnipsel, je nach Geschmack mit oder ohne Kompression) auf die Platte zu speichern.</p>
<p>Die Umwandlung von Pixel-Bildern zu ASCII-Art macht Jave natürlich so ganz nebenbei auch noch.. das dann auch gleich in allen möglichen Geschmacksrichtungen und bei Bedarf mit so netten Ideen wie ein binäres Bild mal eben automatisiert mit benutzerdefiniertem Text darzustellen.</p>
<p>Jave lässt eigentlich keine Wünsche offen, dadurch dass es wirklich nicht zu den Anwendungen gehört die man jeden Tag nutzt und eher auf den abstrusesten Platformen laufen soll die Geeks einfallen, ist auch Java als Sprache nicht wirklich ein Gegenargument. (Im Gegensatz z.B. zu diversen IDEs die man als Entwickler permanent offen haben will, die dank der ganzen Java-VM aber permanent den Speicher zumüllen und mit ewigen Ladezeiten nerven... aber das gehört eigentlich garnicht hierhin).</p>
<h2>AAlib</h2>
<p><a href="http://aa-project.sourceforge.net/" target="_blank">AAlib</a> entstand angeblich weil die Jungs gerne ein Tux-Bildchen von der Linux Texas Users Group während des Bootvorganges sehen wollten.. auf nicht-grafikfähigen Bildschirmen.</p>
<blockquote><p>Once upon a time we've (my friend Kamil and I) bought two old Herculeses as secondary monitors. We didn't know for that time that our Diamond Stealths 64 cards would become obsolete soon. The next day we downloaded the logo of Linux Texas Users Group - nice silly penguin looking like a cowboy! It was so exciting logo ... we decided that we couldn't live without it and we wanted to see it at boot time as a logo on our secondary monitors. There was a small problem - Hercules doesn't support color graphics. So we decided to convert the penguin image to ascii art using netpbm tools.</p>
<p>The output was very ugly because the converting algorithm was absolutly stupid. During the night I designed a new convertor that used a font bitmap to creat an aproximation table. The output wasn't very good since the algorithm wasn't tuned so well. Many months this small piece of code was waiting on my disc for the day "D". Meanwhile I started a new project XaoS (a fractal zoomer) with my friend Thomas. And then I got an idea: Ascii Art Mandelbrots! I was really impressed by the result! <a href="http://www.paru.cas.cz/~hubicka/XaoS" target="_blank">XaoS</a> was faster, portable and looking much better than ever before. I found a new way to go ...</p></blockquote>
<p>Der ursprüngliche Algorithmus wurde immer wieder stark erweitert und irgendwann war das Ganze dann zu einer vollständigen "Grafikbibliothek" ausgewachsen. Sprich: die Funktionen orientieren sich eher an Bibliotheken für den Vesa-Modus oder andere Grafiksysteme denn an irgendwelchen Programmen für die Dateikonvertierung (es gibt mit <a href="http://aa-project.sourceforge.net/aavga" target="_blank">AAvga</a> sogar einen Wrapper für SVGAlib).<br />
AAlib ist heute noch immer bei fast allen Linux-Distributionen dabei und lässt sich so bequem installieren ohne auch nur irgendwelche Sourcen compilieren zu müssen. Unter Windows und ähnlichen zurückgebliebenen Systemen hat man allerdings meist die oft zitierte A****-Karte (<a href="http://www.cygwin.com" target="_blank">Cygwin</a> bringt zwar auch Windows-Nutzer in den Genuss aber die Geschwindigkeit könnte etwas leiden.) DOS zählt natürlich nicht zu diesen Rückständigen Betriebssystemen!</p>
<p>Viele andere Programme bauen also auf dieser Bibliothek auf und nutzen sie um oft erstaunliches darzustellen. Erwähnen muss man wohl unbedingt <a href="http://linux.die.net/man/1/aaxine" target="_blank">AAXine</a>/<a href="http://oreilly.com/pub/h/4441" target="_blank">Mplayer</a> (DVDs ansehen auf dem Terminal), <a href="http://webpages.mr.net/bobz/ttyquake/" target="_blank">ttyquake</a> (Quake!), <a href="http://aa-project.sourceforge.net/aview" target="_blank">Aview</a> (einen Bildbetrachter für die Konsole, ideal in Kombination mit einem Konsolenbrowser wie <a href="http://de.wikipedia.org/wiki/Lynx_(Browser)" target="_blank">Lynx</a>/<a href="http://links.sourceforge.net" target="_blank">Links</a>/<a href="http://elinks.or.cz" target="_blank">Elinks</a> oder ähnlichem) und <a href="http://linux.die.net/man/1/aafire" target="_blank">AAFire</a> (eine Kaminsimulation).</p>
<p>Wer einfach nur einmal sehen will was AAlib leisten kann, dem muss man wohl die Grafikdemo <a href="http://aa-project.sourceforge.net/bb" target="_blank">BB</a> ans Herz legen (ist ebenfalls in den meisten Distributionen dabei), die wirklich erstaunliche Animationen zeigt.</p>
<p><a href="http://aa-project.sourceforge.net/gallery/" target="_blank">Beispiele</a> für die Qualität der Bildumwandlung gibt es natürlich auch.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Stripping tags from ogg Vorbis files]]></title>
<link>http://sinewalker.wordpress.com/?p=339</link>
<pubDate>Tue, 26 Aug 2008 06:05:34 +0000</pubDate>
<dc:creator>sinewalker</dc:creator>
<guid>http://sinewalker.pl.wordpress.com/2008/08/26/stripping-tags-from-ogg-vorbis-files/</guid>
<description><![CDATA[I have a bunch of free Ogg Vorbis audio files that I&#8217;ve downloaded from Kahvi.org. They&#8217;]]></description>
<content:encoded><![CDATA[<p>I have a bunch of free <a title="Xiph's meta container format for media" href="http://www.xiph.org/ogg/">Ogg</a> <a title="Patent-free audio codec (MP3 killer)" href="http://www.vorbis.com/">Vorbis</a> audio files that I've downloaded from <a title="Kahvi Collective. Sound has the power to make the world a better place" href="http://kahvi.org/">Kahvi.org</a>. They're great! But recently they've been including cover art within the files, which breaks Windows Media Player (it can't handle the very long tags of binhex-coded JPGs).</p>
<p>Since I rather like WMP's integration in windows (keyboard shortcuts), and <a title="Kewl KDE music player (iTunes killer)" href="http://amarok.kde.org/">Amarok</a> <a title="Amarok for win32 is still a work in progress, but it compiles..." href="http://amarok.kde.org/wiki/Development/Win32">isn't quite ready for win32</a>, I thought I'd find a way to strip the troublesome tags from the data files rather than change to another player.</p>
<p>Here's a quick-and-dirty shell hack to remove the tags from the files and get them playable by daft players such as Windows Media Player</p>
<p><!--more--></p>
<pre>#!/bin/bash
###############################################################################
#
#   File:       fixvorbis.sh
#   Language:   Bash shell script
#   Time-stamp: &#60;2008-08-26 15:48:45 tzbblg&#62;
#   Platform:   N/A (requirest ogg Vorbis tools installed)
#   OS:         *nix
#   Authors:    Michael Lockhart [MJL]
#
#   Rights:     Copyright © 2008 Michael James Lockhart, B.App.Comp(HONS)
#
#     This program is free software: you can redistribute it and/or
#     modify it under the terms of th e GNU General Public License as
#     published by the Free Software Foundation, either version 3 of the
#     License, or (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
#
#     You should have received a copy of the GNU General Public License
#     along with this program.  If not, see .
#
#   PURPOSE:
#
#     Script to strip out COVERART tags from ogg vorbis files (these
#     tags break certain players...)
#
#   HISTORY:
#
#   MJL20080826 - Created.
#

# extract the comments, less the COVERART tags
# (keep the art in separate files)

for n in *.ogg; do
    echo "Extracting comments and COVERART from $n"
    vorbiscomment -l $n &#124; grep COVERART &#62; $n-art.txt
    vorbiscomment -l $n &#124; grep -v COVERART &#62; $n-comment.txt
done

#if there's a comments patch (stored in patch.txt in the current dir)
# then apply the patch to the comments.
if [ -f patch.txt ]; then
    for n in *-comment.txt; do
	patch $n patch.txt
    done
fi

# edit the comments with new comment files, minus art, possibly patched.
for n in *.ogg; do
    echo "Replacing comments in $n"
    vorbiscomment -c $n-comment.txt -w $n
done

#clean up
rm *-comment.txt

# clean-up of art is manual. There might be different cover-art from
# each file, but if not (diff a*-art.txt b*.txt etc produces no
# output) then just remove all but first and rename it...</pre>
<hr />The smarts are all in the vorbis utilites included as part of Cygwin. Specifically the script uses vorbiscomment<sub>(1)</sub> to extract and apply tags in the Ogg files, and grep and (optionally) patch to manipulate the comments.</p>
<p>Enjoy!</p>
<p>P.S. My Wordpress stylesheet is doing weird things with the margins and this is really badly formatted, sorry. You can copy/paste into a text editor just fine though...</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[IBM documentation for the new Vim]]></title>
<link>http://wonderingpondering.wordpress.com/?p=510</link>
<pubDate>Tue, 19 Aug 2008 05:25:06 +0000</pubDate>
<dc:creator>wonderingpondering</dc:creator>
<guid>http://wonderingpondering.pl.wordpress.com/2008/08/19/ibm-documentation-for-the-new-vim/</guid>
<description><![CDATA[Have no clue what the title is about? You need to do some serious reflection on your geekness.
Brief]]></description>
<content:encoded><![CDATA[<p>Have no clue what the title is about? You need to do some serious reflection on your geekness.</p>
<p>Briefly, Vim is a successor of vi, in lower case, written in 1976 as a Linux editor. If you do any serious work in Linux, you really need to equip yourself with that tool.</p>
<p>This<a title="IBM documentation for Vim" href="http://www.ibm.com/developerworks/aix/library/au-speakingunix_vim/index.html?ca=drs-" target="_blank"> documentation by IBM is a thorough discussion of acquiring and using Vim</a>, and the following list - a partial list - of platforms to which it has been ported:</p>
<ul>
<li>Amiga</li>
<li>AIX</li>
<li>BSD</li>
<li>Cygwin</li>
<li>IBM OS/2®</li>
<li>Linux</li>
<li>Apple Mac OS and Mac OS X</li>
<li>Microsoft® MS-DOS®</li>
<li>Microsoft Windows® 95 though Windows Vista®</li>
<li>Microsoft Windows CE</li>
<li>OpenVMS</li>
</ul>
<p>The references (IBM's documentation is very thorough) include the AIX wiki article, <a title="Vim.org's official site" href="http://vim.org" target="_blank">vim.org</a>, and podcasts featuring IBM experts.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Using dd on cygwin to make iso]]></title>
<link>http://djtechspace.wordpress.com/?p=3</link>
<pubDate>Mon, 04 Aug 2008 21:32:49 +0000</pubDate>
<dc:creator>dongj</dc:creator>
<guid>http://djtechspace.pl.wordpress.com/2008/08/04/using-dd-on-cygwin-to-make-iso/</guid>
<description><![CDATA[Summary

dd if=/dev/sr0 of=cdrom.iso



With mosts Cd’s you can make a 1:1 copy with dd and burn t]]></description>
<content:encoded><![CDATA[<p><strong>Summary</strong></p>
<blockquote>
<div class="entry">dd if=/dev/sr0 of=cdrom.iso</div>
</blockquote>
<div class="entry">
<hr />
With mosts Cd’s you can make a 1:1 copy with dd and burn this ISO 9660 image using any standard tool.</p>
<blockquote><p>dd if=&#60;filepath or device&#62; of=&#60;filepath or device&#62;</p></blockquote>
<blockquote><p>/dev/sda   first hard disk (whole disk)<br />
/dev/sda1   first hard disk (first partition)<br />
/dev/sr0   first cdrom</p></blockquote>
<p>create a cdrom iso:</p>
<blockquote><p>dd if=/dev/sr0 of=cdrom.iso</p></blockquote>
<p>more: http://www.cygwin.com/cygwin-ug-net/using-specialnames.html</p>
<p>This does not work with Playstation-Cd’s because the data track is written in mode 2 which dd can’t read, and because the Cd’s are multitrack (one data-track and several audio-tracks).</p>
<p>To read a CD and make a image pair:</p>
<blockquote><p>cdrdao read-cd –read-raw –datafile &#60;filename.bin&#62; –device &#60;bus,id,lun&#62; –driver generic-mmc-raw &#60;filename.toc&#62;</p></blockquote>
<p>create a cdrom iso:</p>
<blockquote><p>cdrdao read-cd –read-raw –datafile cdrom.bin –device ATAPI:1,0,0 –driver generic-mmc-raw cdrom.toc</p></blockquote>
</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Using dd on cygwin for making ISO]]></title>
<link>http://dongj.wordpress.com/?p=10</link>
<pubDate>Sun, 03 Aug 2008 15:20:47 +0000</pubDate>
<dc:creator>dongj</dc:creator>
<guid>http://dongj.pl.wordpress.com/2008/08/03/using-dd-on-cygwin-for-making-iso/</guid>
<description><![CDATA[
With mosts Cd’s you can make a 1:1 copy with dd and burn this ISO 9660 image using any standard t]]></description>
<content:encoded><![CDATA[<div class="entry">
<p>With mosts Cd’s you can make a 1:1 copy with dd and burn this ISO 9660 image using any standard tool.</p>
<blockquote><p>dd if=&#60;filepath or device&#62; of=&#60;filepath or device&#62;</p></blockquote>
<blockquote><p>/dev/sda   first hard disk (whole disk)<br />
/dev/sda1   first hard disk (first partition)<br />
/dev/sr0   first cdrom</p></blockquote>
<p>create a cdrom iso:</p>
<blockquote><p>dd if=/dev/sr0 of=cdrom.iso</p></blockquote>
<p>more: http://www.cygwin.com/cygwin-ug-net/using-specialnames.html</p>
<p>This does not work with Playstation-Cd’s because the data track is written in mode 2 which dd can’t read, and because the Cd’s are multitrack (one data-track and several audio-tracks).</p>
<p>To read a CD and make a image pair:</p>
<blockquote><p>cdrdao read-cd –read-raw –datafile &#60;filename.bin&#62; –device &#60;bus,id,lun&#62; –driver generic-mmc-raw &#60;filename.toc&#62;</p></blockquote>
<p>create a cdrom iso:</p>
<blockquote><p>cdrdao read-cd –read-raw –datafile cdrom.bin –device ATAPI:1,0,0 –driver generic-mmc-raw cdrom.toc</p></blockquote>
</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Midnight Commander under Cygwin/Vista]]></title>
<link>http://mitek17.wordpress.com/?p=25</link>
<pubDate>Fri, 01 Aug 2008 22:15:10 +0000</pubDate>
<dc:creator>mitek</dc:creator>
<guid>http://mitek17.pl.wordpress.com/2008/08/02/midnight-commander-under-cygwinvista/</guid>
<description><![CDATA[For many years I&#8217;ve been using Far Manager which is really great commander for Windows.
It has]]></description>
<content:encoded><![CDATA[<p>For many years I've been using <a href="http://farmanager.com/">Far Manager</a> which is really great commander for Windows.<br />
It has many useful plugins like SCP/SFTP, Network Browser, reasonably good editor with Colorer,  PocketPC connection etc.</p>
<p>On the downside FAR editor has a couple of problems which bothered me a lot:<br />
- Internal editor which is quite powerful, sometimes starts using Windows line endings (CRLF) and because I am working in a mixed environment I had to run the dos2unix utility on the routine basis to convert all the files into the UNIX format. </p>
<p>- FAR has a mysterious feature of changing file permissions or file sharing by adding user "None" with special permissions which were preventing files from to be executed. I.e. you've download ZIP file using FAR's FTP browser, unpack it, try to run EXE file, Windows says:<code>"You don't have permissions to run the file"</code>. So you have to Explorer-&#62;Security settings and kill this None user.</p>
<p>After my recent upgrade from XP to Vista these problems became even worse.<br />
So, I tried to start using the Midnight Commander, which I've been using for ages in Unix environment.<br />
But under Cygwin/Vista it behaves quite differently. </p>
<p>Problems I've met so far are:</p>
<p>- no mouse support under Vista.<br />
I've even tried to use Cygwin's SSH port with PuTTY and then run MC - no way to have mouse working in Cygwin window.</p>
<p>- I am unable to browse/open any .zip files.<br />
MC says: <code> ./file.zip: ./file.zip: cannot execute binary file</code>.<br />
What the heck? Somehow it opens the TAR files, but only by F4(Edit) command. If you try to open TAR file it writes similar bullshit about running a binary file.</p>
<p>-And the last thing which drives me mad - I am unable to save some of the MC's config files, such as  .mc/bindings. Every time it accesses it, it sets up the sharing, adding this infamous user None with special permissions and this file becomes read-only for MC.</p>
<p>PS While writing this post, I have found that you can get a Midnight Commander's subshell working under Cygwin - you have to explicitly enable the subshell support via parameter (even if it is a default):<br />
<code>#&#62; mc.exe -U</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cygwin, cron / crontab, cron-config 사용기.]]></title>
<link>http://lum7671.wordpress.com/2008/07/24/cygwin-cron-crontab-cron-config-%ec%82%ac%ec%9a%a9%ea%b8%b0/</link>
<pubDate>Thu, 24 Jul 2008 04:46:49 +0000</pubDate>
<dc:creator>lum7671</dc:creator>
<guid>http://lum7671.pl.wordpress.com/2008/07/24/cygwin-cron-crontab-cron-config-%ec%82%ac%ec%9a%a9%ea%b8%b0/</guid>
<description><![CDATA[이전 문서를 뒤져서 &#8220;Cygwin, cron / crontab 사용하기&#8221;를 적었는데 이게 ]]></description>
<content:encoded><![CDATA[<p>이전 문서를 뒤져서 <a href="http://lum7671.wordpress.com/2008/07/23/cygwin-cron-crontab-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0/">"Cygwin, cron / crontab 사용하기"</a>를 적었는데 이게 오래된 것이고 회사에서 AD 시스템을 사용하기 때문에 일반적으로 사용하는 설정으로 되지 않았다.</p>
<p>/usr/bin/cron-config : 자동으로 Windows Service에 등록해주는 명령이다.<br />
/usr/bin/cygrunsrv : Windows Service 관련 된 Cygwin 명령이다.<br />
/usr/bin/cronevents : Cron 관련 event log 보는 프로그램이다.</p>
<p>[그림 1] cron-config 실행 화면<br />
<a href="http://lum7671.files.wordpress.com/2008/07/cygwin-cron03.png"><img class="aligncenter size-medium wp-image-99" src="http://lum7671.files.wordpress.com/2008/07/cygwin-cron03.png" alt="" /></a><br />
빨간 네모는 이미 설치가 되있으면 나오는 메시지이다.</p>
<p>[그림 2] cronevents 실행 화면<br />
<a href="http://lum7671.files.wordpress.com/2008/07/cygwin-cronevents01.png"><img class="aligncenter size-medium wp-image-99" src="http://lum7671.files.wordpress.com/2008/07/cygwin-cronevents01.png" alt="" /></a></p>
<p><strong>[참고] cron 실행계정 만들어 보안 높이기</strong><br />
<em>(여기서는 cron_server 로 하겠음)</em></p>
<ol>
<li>cron_server 계정 만들기<br />
<code>$ net user cron_server &#60;passwd&#62; /add /yes<br />
$ net localgroup &#60;administrators group name&#62; cron_server /add</code><br />
<em>&#60;passwd&#62; : cron_server 계정에 쓸 비밀번호.<br />
&#60;administrators group name&#62; : 보통 Administrators 임.</em></li>
<li>cron_server 계정 권한 설정<br />
<code>$ editrights -a SeAssignPrimaryTokenPrivilege -u cron_server<br />
$ editrights -a SeCreateTokenPrivilege -u cron_server<br />
$ editrights -a SeIncreaseQuotaPrivilege -u cron_server<br />
$ editrights -a SeServiceLogonRight -u cron_server<br />
$ mkpasswd -l -u cron_server &#62;&#62; /etc/passwd</code></li>
<li>보안 높이기<br />
cron_server계정은 로그인 못하도록 설정<br />
<code>$ editrights -a SeDenyInteractiveLogonRight -u cron_server<br />
$ editrights -a SeDenyNetworkLogonRight -u cron_server<br />
$ editrights -a SeDenyRemoteInteractiveLogonRight -u cron_server</code></li>
<li>윈도즈 서비스에 등록<br />
<code>$ cygrunsrv -I cron -p /usr/sbin/cron -a -D -u cron_server -w &#60;passwd&#62;</code><br />
<em>만약, cron 이 이미 등록돼 있으면 다음 명령으로 기존 cron 서비스를 지우고 서비스를 등록함.<br />
<code>$ cygrunsrv -E cron<br />
$ cygrunsrv -R cron</code></em></li>
</ol>
<p>참고사이트 :<br />
<a href="http://www.mail-archive.com/cygwin@cygwin.com/msg31538.html">http://www.mail-archive.com/cygwin@cygwin.com/msg31538.html</a></p>
<div class="zemanta-pixie" style="margin-top:10px;height:15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/a582703d-67ab-4cef-92b4-5465903cf6f6/"><img class="zemanta-pixie-img" style="border:medium none;float:right;" src="http://img.zemanta.com/reblog_e.png?x-id=a582703d-67ab-4cef-92b4-5465903cf6f6" alt="Zemanta Pixie" /></a></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cygwin]]></title>
<link>http://fracturedpsyche.wordpress.com/?p=58</link>
<pubDate>Sun, 20 Jul 2008 13:49:31 +0000</pubDate>
<dc:creator>fracturedpsyche</dc:creator>
<guid>http://fracturedpsyche.pl.wordpress.com/2008/07/20/cygwin/</guid>
<description><![CDATA[Cygwin is a really awesome program; it lets you use a Linux terminal inside windows. It&#8217;s pret]]></description>
<content:encoded><![CDATA[<p><a href="http://www.cygwin.com">Cygwin</a> is a really awesome program; it lets you use a Linux terminal inside windows. It's pretty neat.</p>
<p>I really like using it, because it gives me a chance of learning Linux terminal operations without having to boot into Ubuntu or OpenSusE.</p>
<p>Moreover, it also constrains itself to a directory to prevent <code><strong><em>Sudo rm -rf /</em></strong></code> (command that deletes everything without any hope of undoing or stopping) from happening to your system.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Funções ZZ - uma coletânea com mini-aplicativos de utilidades diversas]]></title>
<link>http://zoltral.wordpress.com/?p=78</link>
<pubDate>Sun, 20 Jul 2008 02:59:34 +0000</pubDate>
<dc:creator>zoltral</dc:creator>
<guid>http://zoltral.pl.wordpress.com/2008/07/19/funcoes-zz-uma-coletanea-com-mini-aplicativos-de-utilidades-diversas/</guid>
<description><![CDATA[Hoje em dia já nos acostumamos a entrar na internet para procurar todo tipo de informações ou fer]]></description>
<content:encoded><![CDATA[<p>Hoje em dia já nos acostumamos a entrar na internet para procurar todo tipo de informações ou ferramentas necessárias para nossa vida. No entanto, mesmo com a ajuda dos sites de busca muitas vezes nossas pesquisas não retornam o esperado, principalmente pela infinidade de páginas que podem conter em seus textos os termos usados na busca.</p>
<p>Também temos o caso de que muitas vezes queremos um programa/ferramenta que faça uma pequena coisa para nós, mas acabamos encontrado apenas programas com vários e vários megas de tamanho.</p>
<p>Devido a essas dificuldades, muitos programadores, acabam criando pequenos scripts para agilizar suas atividades.</p>
<p>Exatamente dentro dessa filosofia, um programador da antiga Conectiva, Aurélio Marinho Jargas, criou em 2000 as Funções ZZ. Uma coleção de pequenos scripts, a princípio apenas para agilizar o trabalho da própria Conectiva. Em 2003 ele convidou o Thobias Salazar Trevisan, um colaborador assíduo para se tornar co-autor.</p>
<p>Hoje em dia, na sua versão 8.6, a Funções ZZ agrega 66 funções em apenas 125 kb e se tornou um utilitário que vale a pena ter instalado no seu computador.</p>
<p>Veja abaixo alguns exemplos.</p>
<ul>Resultado da megasena</ul>
<p><code>paulo@tamoio $ zzloteria megasena<br />
megasena:<br />
08 - 17 - 46 - 48 - 56 - 60<br />
Concurso 988 (19/07/2008 )<br />
Acumulado em R$ 30.000.000,00 para 23/07/2008</code></p>
<p>Não foi desta vez. Continuo pobre. Melhor assim, prefiro ganhar os 30 milhões da quarta-feira que vem. :)</p>
<ul>Cotação do dólar</ul>
<p><code>paulo@tamoio $ zzmoeda real<br />
Sigla         Compra        Venda  Var.%        Hora  Moeda<br />
DOLCM              -       1,5890  -0,68  18/07/2008  Real - Dólar comercial<br />
DOLPR              -       1,8100   0,00  18/07/2008  Real - Dólar paralelo<br />
DOLPTAX            -       1,5913  -0,29       00:58  Real - Dólar ptax - bacen<br />
DOLTR              -       1,7100   0,00  18/07/2008  Real - Dólar turismo</code></p>
<ul>Cálculo</ul>
<p><code>paulo@tamoio $ zzcalcula 30000000 / 1,5890<br />
18879798,61</code></p>
<p>O prêmio da megasena de quarta-feira convertido para dólar.</p>
<ul>Tradução</ul>
<p><code>paulo@tamoio $ zzdicbabelfish pt_en rico<br />
rich<br />
paulo@tamoio $ zzdicbabelfish en_pt rich<br />
rico<br />
paulo@tamoio $ zzdicbabelfish pt_fr rico<br />
riche</code></p>
<p>É oque eu serei quando eu ganhar na megasena. :) Otimismo sempre.</p>
<ul>Clima em Curitiba</ul>
<p><code>paulo@tamoio $ zztempo Brazil SBCT</code></p>
<p><code>Curitiba Aeroporto , Brazil</code></p>
<p><code> (SBCT) 25-31S 049-10W 908M</code></p>
<p><code> Conditions at [Jul 19, 2008 - 10:00 PM EDT]<br />
2008.07.20 0200 UTC<br />
Wind from the NNE (020 degrees) at 2 MPH (2 KT)<br />
Visibility 5 mile(s)<br />
Sky conditions clear<br />
Temperature 55 F (13 C)<br />
Dew Point 51 F (11 C)<br />
Relative Humidity 87%<br />
Pressure (altimeter) 30.21 in. Hg (1023 hPa)<br />
ob SBCT 200200Z 02002KT 9000 SKC 13/11 Q1023</code></p>
<p>13 °C - por isso que estou usando pantufas.</p>
<p>As Funções ZZ são uma ferramente que vale a pena ter instalado em seu computador. Se você usa Linux, é só seguir as instruções de instalação. Se você usa Windows, vai precisar instalar o Cygwin antes, para só depois poder instalar o Funções ZZ.</p>
<p>Funções ZZ:<br />
<a href="http://funcoeszz.net/index.html" target="_blank">Site</a><br />
<a href="http://funcoeszz.net/download.html" target="_blank">Download</a><br />
<a href="http://funcoeszz.net/instalacao.html" target="_blank">Instalação</a><br />
<a href="http://funcoeszz.net/historia.html" target="_blank">História</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cygwin, rxvt 화면]]></title>
<link>http://lum7671.wordpress.com/2008/07/17/cygwin-rxvt-%ed%99%94%eb%a9%b4/</link>
<pubDate>Thu, 17 Jul 2008 05:42:00 +0000</pubDate>
<dc:creator>lum7671</dc:creator>
<guid>http://lum7671.pl.wordpress.com/2008/07/17/cygwin-rxvt-%ed%99%94%eb%a9%b4/</guid>
<description><![CDATA[회사가 AD시스템을 도입으로 Windows의 Task Scheduler를 기본으로 &quot;사용안함]]></description>
<content:encoded><![CDATA[<p>회사가 AD시스템을 도입으로 Windows의 Task Scheduler를 기본으로 &#34;사용안함&#34; 해놔서 <a href="http://www.cygwin.com">Cygwin</a>의 crontab을 써볼까? 하는 생각에 오랜만에 <a href="http://www.cygwin.com">Cygwin</a>을 설치해 보았다. </p>
<p>기본 도스창은 Drag도 메뉴에서 선택해야 하고 Text Copy 역시 쉽지가 않아서 Cygwin을 설치하면 rxvt를 설치한다. </p>
<p>Cygwin을 <a href="http://kltp.kldp.org/stories.php?story=02/12/04/5824967">2002년에 사용</a>하고 거의 사용을 안했으니 많이 바뀌었을 것 같다. </p>
<p>가장 눈에 띄는것이 rxvt이다 글꼴이 Monospace, Bistream Vera Sans 인지 잘은 모르겠지만 우선 맘에 든다. 기본 색상 역시 바탕은 짙은 파랑에 글자는 연한 노랑도 맘에 든다.&#160; </p>
<p><a href="http://lum7671.files.wordpress.com/2008/07/cygwin_rxvt01.png"><img src="http://lum7671.wordpress.com/files/2008/07/cygwin_rxvt01.png?w=300" alt="" width="300" height="187" class="aligncenter size-medium wp-image-99" /></a></p>
<p>C:\cygwin\cygwin.bat</p>
<p><code>@echo off <br />C: <br />chdir C:\cygwin\bin <br />rxvt.exe -display :0 -e /usr/bin/zsh --login -i <br />REM bash --login -i </code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[*** multiple target patterns using CDT 5.0]]></title>
<link>http://dreamlusion.wordpress.com/?p=77</link>
<pubDate>Sat, 12 Jul 2008 10:09:37 +0000</pubDate>
<dc:creator>dreamlusion</dc:creator>
<guid>http://dreamlusion.pl.wordpress.com/2008/07/12/multiple-target-patterns-using-cdt-50/</guid>
<description><![CDATA[UPDATE: This blog entry has been moved here: http://dreamlusion.eucoding.com/doku.php?id=blog:2008:0]]></description>
<content:encoded><![CDATA[<p><strong>UPDATE: This blog entry has been moved here: <a href="http://dreamlusion.eucoding.com/doku.php?id=blog:2008:09:multiple_target_patterns_cdt_5.0">http://dreamlusion.eucoding.com/doku.php?id=blog:2008:09:multiple_target_patterns_cdt_5.0</a>.</strong></p>
<h4>Problem Description</h4>
<p>If you want to build a project, using the Cygwin tool chain, that has dependencies to a third party library, you might experience a "multiple target patterns" error.</p>
<p>The usual procedure to do build a project that uses a third party library involves two steps.</p>
<ol>
<li>Add the Includes required for compiling in the <a href="http://www.google.com/search?q=site%3Ahelp.eclipse.org+%22paths+and+symbols%22">Project Properties &#62; C/C++ General &#62; Paths and Symbols &#62; Includes</a> dialog.</li>
<li>Add the library directories in the <em>Library Search Path</em> section of the <a href="http://www.google.com/search?q=site%3Ahelp.eclipse.org+%22tool+settings%22+">Project Properties &#62; C/C++ Build &#62; Settings &#62; Tool Settings &#62; Cygwin C++ Linker &#62; Libraries</a> dialog. Then, in the <em>Libraries</em> section of the same dialog add all of your third party libraries.</li>
</ol>
<p><em>NOTE: When adding your third party libraries be aware that you need to specify them with neither the "lib" prefix nor the extension. For example, if you have a library called libboost_regex.a, you should type in just boost_regex.a in the appropriate dialog. This is how the g++ compiler works, the Unix way.</em></p>
<h4>Tools Used/Affected</h4>
<ul>
<li>Eclipse IDE for C/C++ Developers (Eclipse Platform Ganymede (3.4.0), CDT 5.0.200806171202)</li>
<li>Cygwin GCC tool chain (Make 3.81, GCC 3.4.4)</li>
</ul>
<h4>Solution</h4>
<p>The root cause of the problem is that the <a href="http://www.cygwin.com/ml/cygwin/2008-07/msg00087.html">Cygwin GCC tool chain expects paths to be in the unix style</a>, but when Eclipse uses the values you specified for includes, library paths, e.t.c. to automatically generate the appropriate make files, it does not convert these values in Unix style and therefore building fails.</p>
<p>You are going to experience a beautiful build if you change all the paths you entered in Windows format to Unix format (e.g. C:\Cygwin\home to /home).</p>
<p>If you do this though, there is another shortcoming ahead, fortunately smaller than the previous one.</p>
<p>Because Eclipse won't recognize the Unix path style you're going to loose content assist (code completion) for the includes you specified and you'll also get a "Path Entry Problem" warning.</p>
<p>UPDATE: As volador pointed me out, you may use windows paths but with forward slashes.</p>
<h4>Conclusion</h4>
<p>Paths definition, for projects targeting the Cygwin tool chain, seems to have been problematic since long ago for the CDT environment. There's a <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117013">relevant bug report</a> that has been arround since 2005.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[bash script to check if a process instance is running]]></title>
<link>http://bkpavan.wordpress.com/?p=96</link>
<pubDate>Wed, 09 Jul 2008 00:05:06 +0000</pubDate>
<dc:creator>Pavan</dc:creator>
<guid>http://bkpavan.pl.wordpress.com/2008/07/09/bash-script-to-check-ifprocess-instance-is-running/</guid>
<description><![CDATA[#!/bin/bash
if [ $# -ne 2 ]
then
echo &#8220;$0 process_name instances_count&#8221;
exit 1
fi
functi]]></description>
<content:encoded><![CDATA[<p><code>#!/bin/bash<br />
if [ $# -ne 2 ]<br />
then<br />
echo "$0 process_name instances_count"<br />
exit 1<br />
fi</p>
<p>function count_match {<br />
echo Count Match  #Your code goes here<br />
}</p>
<p>function count_mismatch {<br />
echo Count Mismatch  #Your code goes here<br />
}</p>
<p>process=$1<br />
exp_count=$2</p>
<p>run_count=`ps eax &#124; grep ${process} &#124; grep -v grep &#124; wc -l`</p>
<p>if [ ${exp_count} -eq ${run_count} ]<br />
then<br />
count_match<br />
else<br />
count_mismatch<br />
fi </code></p>
<p>Please note "grep -v grep" is not be required for cygwin, but even if you retain it, it doesn't alter the behavior.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Include Cygwin in your PowerShell Environment (Vista)]]></title>
<link>http://danpixley.wordpress.com/?p=28</link>
<pubDate>Mon, 07 Jul 2008 00:19:06 +0000</pubDate>
<dc:creator>dantheman13</dc:creator>
<guid>http://danpixley.pl.wordpress.com/2008/07/07/include-cygwin-in-your-powershell-environment-vista/</guid>
<description><![CDATA[Want to include your Cygwin environment in your Windows PowerShell on Vista?
Step 1.

Open PowerShel]]></description>
<content:encoded><![CDATA[<p>Want to include your Cygwin environment in your Windows PowerShell on Vista?</p>
<p><b>Step 1.</b></p>
<p>
Open PowerShell.  Run:
<pre>set-executionpolicy RemoteSigned</pre>
</p>
<p><b>Step 2.</b></p>
<p>Create a directory in your user profile:
<pre>mkdir c:\users\(profile)\Documents\WindowsPowerShell</pre>
</p>
<p><b>Step 3.</b></p>
<p>Navigate to the above created directory, and create a new file called "Microsoft.Powershell_profile.ps1"</p>
<p><b>Step 4.</b></p>
<p>Edit the file in Notepad:
<pre>$env:path=$env:path+";C:\cygwin\bin"</pre>
<p><b>Step 5.</b></p>
<p>Include any other paths if necessary, or include other scripts and add-ons as needed.  Relaunch PowerShell and varify the changes.  Trying running
<pre>c:\cygwin\cygwin.bat</pre>
<p>or more simply
<pre>bash</pre>
]]></content:encoded>
</item>

</channel>
</rss>
