<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/pages/css/rss.css" type="text/css"?>
<rss xmlns:ps="http://trailfire.com" version="2.0"><channel><title>"linux" by enjoylife</title><link>http://www.trailfire.com/enjoylife/trails/60542</link><category>enjoylife/trails</category><ttl>60</ttl><item><title>Working With the Unix Shell</title><link>http://www.trailfire.com/enjoylife/marks/212457</link><description><![CDATA[The C-shell offers a number of special commands known as control codes. Control codes define commands specific to the operating system. To issue a control code, hold down and press the corresponding letter key. The following summarizes some of the most commonly used control codes:<TABLE BORDER="1" CELLPADDING="5"><TBODY><TR><TD WIDTH="15">&nbsp;</TD><TD VALIGN="top"><STRONG><TT>d</TT></STRONG></TD><TD WIDTH="15">&nbsp;</TD><TD>Signals the end of a file you are entering from the terminal if typed at the beginning of a line or if typed twice elsewhere in a line.</TD></TR><TR><TD WIDTH="15">&nbsp;</TD><TD VALIGN="top"><STRONG><TT>c</TT></STRONG></TD><TD WIDTH="15">&nbsp;</TD><TD>Cancels a command or interrupts a running program.</TD></TR><TR><TD WIDTH="15">&nbsp;</TD><TD VALIGN="top"><STRONG><TT>z</TT></STRONG></TD><TD WIDTH="15">&nbsp;</TD><TD>Suspends a process or job but does not terminate it: use <STRONG>fg</STRONG> to restart suspended process or job.</TD></TR><TR><TD WIDTH="15"><BR></TD><TD VALIGN="top"><STRONG><TT>u</TT></STRONG></TD><TD WIDTH="15">&nbsp;</TD><TD>Clears the command line.<BR><BR><BR><BR><BR></TD></TR></TBODY></TABLE><BR>common_alias myscreen &#39;~/bin/screen&#39;<BR>common_alias ls&nbsp;&nbsp; &#39;ls --color=auto&#39;<BR><BR><BR>common_alias findfile&nbsp;&nbsp;&nbsp; &#39;find . -follow -type f | grep $*&#39;<BR>common_alias findtext &#39;find . -not -name &quot;*.d&quot; -not -name &quot;*.o&quot; -not -name &quot;*.a&quot; -follow -type f -print0 | xargs --null grep $*&#39;<BR>#common_alias findcode&nbsp;&nbsp;&nbsp; &quot;find -follow -type f -name &#39;*.cpp&#39; -o -name &#39;*.h&#39; -o -name &#39;*.java&#39; -o -name &#39;*.const&#39; -print0| xargs --null grep $*&quot;<BR>common_alias findcode &#39;find . -name &quot;*.cpp&quot; -name &quot;*.h&quot; -name &quot;*.java&quot; -name &quot;*.c&quot; -name &quot;*.hpp&quot; -follow -type f -print0 | xargs --null grep $*&#39;<BR>common_alias findcdb &#39;find . -name &quot;*.layout&quot; -name &quot;*.def&quot; -name &quot;*.cdb&quot; -follow -type f -print0 | xargs --null grep $*&#39;<BR>common_alias findweb &#39;find . -name &quot;*.aml&quot; -name &quot;*.xml&quot; -name &quot;*.xsd&quot; -name &quot;*.mdl&quot; -name &quot;*.sml&quot; -follow -type f -print0 | xargs --null grep $*&#39;<BR>common_alias findany &#39;find . -follow -type f -print0 | xargs --null grep $*&#39;<BR><BR><BR><BR>export PS1=&quot;\h@\u:\w% &quot;<BR>export DISPLAY=l-sjn-jezhao:0.0<BR>export LS_COLORS=&#39;di=01;33&#39;<BR><BR>function cleanup(){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Removing $1 files...&quot;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; find \. -follow -name &quot;$1&quot; | xargs rm<BR>}]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 06 May 2008 13:33:18 -0700</pubDate><guid isPermalink="false">trailfire:markId:212457</guid></item><item><title>How do you exclude files in the find command - Linux Forums</title><link>http://www.trailfire.com/enjoylife/marks/212461</link><description><![CDATA[How about searchin for all the mp3 files with excluding all those who are starting by alphabet &quot;A&quot; ?<BR><BR>Or Even how about searchin for all the mp3 files with excluding all those who are smaller than 3 MB of size ?<BR><BR>With both of the two of above queries we can use the same method of excluding particular criteria.<BR><BR>find /mp3 -not -iname &quot;A*&quot; -iname &quot;*.mp3&quot;<BR>&amp; find /mp3 -not -size -3M -iname &quot;*.mp3&quot;<BR>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 06 May 2008 13:35:04 -0700</pubDate><guid isPermalink="false">trailfire:markId:212461</guid></item><item><title>How to iterate over files in a bash script?</title><link>http://www.trailfire.com/enjoylife/marks/213532</link><description><![CDATA[Thanks a lot guys--with those changes this is working fine now:<BR><BR>#!/bin/bash<BR><BR>find . -name &quot;*.mp3&quot; | while read FILENAME;<BR>do<BR><BR>ARTIST=&quot;`exiftool -Artist &quot;$FILENAME&quot; -p &#39;$Artist&#39;`&quot;<BR>TITLE=&quot;`exiftool -Title &quot;$FILENAME&quot; -p &#39;$Title&#39;`&quot;<BR>ALBUM=&quot;`exiftool -Album &quot;$FILENAME&quot; -p &#39;$Album&#39;`&quot;<BR>YEAR=&quot;`exiftool -Year &quot;$FILENAME&quot; -p &#39;$Year&#39;`&quot;<BR>DIRECTORY=&quot;`exiftool -Directory &quot;$FILENAME&quot; -p &#39;$Directory&#39;`&quot;<BR><BR>ruby /home/pimeson/.kde/share/apps/amarok/scripts/wiki_lyrics/cli/wikilyrics.rb -a $ARTIST -t $TITLE -l $ALBUM -y $YEAR --sites cs,P3,yan,o,rics,iki,Download,Mania,ular,rics,5,etras &gt; &quot;$DIRECTORY/$TITLE.txt&quot;<BR><BR>done<BR><BR>BostonWatcher, I agree my script should, to all appearances, have been working, but I tried it with other files too and had the same problem.]]></description><category>linux</category><author>enjoylife</author><pubDate>Mon, 12 May 2008 12:00:09 -0700</pubDate><guid isPermalink="false">trailfire:markId:213532</guid></item><item><title>ClearCase Version Tree</title><link>http://www.trailfire.com/enjoylife/marks/213768</link><description><![CDATA[<H1 CLASS="topictitle1">ClearCase Version Tree</H1><DIV><P>The ClearCase Version Tree view displays the ClearCase version history of a resource.</P><DIV CLASS="section"><P>The <SPAN CLASS="wintitle">ClearCase Version Tree</SPAN> view displays a graphical view of the version history for a ClearCase element. To open the <SPAN CLASS="wintitle">ClearCase Version Tree</SPAN>, right-click a resource in a ClearCase view and then select <SPAN CLASS="menucascade"><SPAN CLASS="uicontrol">Tools</SPAN> &gt; <SPAN CLASS="uicontrol">Show Version Tree</SPAN></SPAN> on the context menu.</P><P>The ClearCase Version Tree view opens and displays a partial tree for the resource, which includes only the contributing versions for the version currently selected by your ClearCase view. For example, only the versions and branches that are directly connected to the view-selected version are shown. Click the <IMG ALT="fetch branches icon" SRC="../images/vtree_fetch.gif"> icon to fetch the missing versions and complete the version tree.</P><DIV CLASS="p">In the ClearCase Version Tree view, each version of a resource is displayed as a node on the tree, and the version currently selected by your view is marked with the <IMG ALT="vtree view-selected icon" SRC="../images/view.gif"> icon. You can use the ClearCase Version Tree view to perform ClearCase operations on resources by right-clicking on a version node, a branch, or a merge arrow and then selecting a ClearCase operation.<DIV CLASS="note"><SPAN CLASS="notetitle">Note:</SPAN> You can also navigate the ClearCase Version Tree and perform operations on resources by using the keyboard. For more information, see <A TITLE="You can use the keyboard to navigate and perform ClearCase operations on version nodes in the ClearCase Version Tree view." HREF="r_ccvtree_keys.htm">ClearCase Version Tree shortcut keys</A>.</DIV></DIV></DIV></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 13 May 2008 14:27:39 -0700</pubDate><guid isPermalink="false">trailfire:markId:213768</guid></item><item><title>CLOG - Content Log: Grep a string with a quote in it</title><link>http://www.trailfire.com/enjoylife/marks/213786</link><description><![CDATA[<SPAN CLASS="entrytitle">Grep a string with a quote in it</SPAN><BR>Say you&#39;re trying use UNIX commands to find a string like &quot;don&#39;t stop grepping&quot;. For strings without a quote, the format of the command is &#39;grep -l -r &#39;dont stop grepping&#39; *<BR>But if you&#39;re plagued by that pesky single quote, what do you do, since the string goes inside a single quote?<BR>Here&#39;s how to format your grep to accomodate that pesky quote:<BR>grep -l -r &quot;don\&#39;t stop grepping&quot; *<BR>Simply replace the single quotes in the command line with a double quote, then use a \ before the single quote in your string and the kingdom of search results shall be yours! <A NAME="more"><BR></A><DIV CLASS="posted">]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 13 May 2008 15:09:02 -0700</pubDate><guid isPermalink="false">trailfire:markId:213786</guid></item><item><title>Jerry Hsu&amp;#039;s Space</title><link>http://www.trailfire.com/enjoylife/marks/213993</link><description><![CDATA[<H3 CLASS="post-title entry-title"><A HREF="http://jerryhsuth.blogspot.com/2008/01/xming-x-win32.html">Xming 免費的X-Win32</A></H3><DIV CLASS="post-header-line-1"><DIV CLASS="post-body entry-content"><P>1. 安裝系統及字型<BR>2. 記得到C:\Program Files\Xming, 改X0.host檔, 把遠端linux系統ip加入, 不然無法redirect screen.<BR>3. 連到linux, export DISPLAY=&quot;192.168.0.yourip:0.0&quot;</P></DIV></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 14 May 2008 11:36:25 -0700</pubDate><guid isPermalink="false">trailfire:markId:213993</guid></item><item><title>Linux下面的图形界面远程管理：FreeNX--博客之家</title><link>http://www.trailfire.com/enjoylife/marks/213997</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 14 May 2008 11:52:50 -0700</pubDate><guid isPermalink="false">trailfire:markId:213997</guid></item><item><title>Emacs在FreeNX下不工作 - whjiang - 博客园</title><link>http://www.trailfire.com/enjoylife/marks/213998</link><description><![CDATA[我一直是用FreeNX(一个类似VNC的东东，比VNC好)来连接我的ubuntu linux 6.06的系统的。最近因为想用emacs的gud集成调试系统，所以试着装了个emacs 22.1。在本机X环境中使用正常，但当我用FreeNX连接后，远程打开emacs的话，emacs报告“No fonts found.”并直接退出。但gvim却能正常启动。<BR>&nbsp;&nbsp; 在网上找了很多参考资料，说是要修改/etc/X11/xorg.conf的FontPath.但修改了以后启动也没有效果。束手无策了。<BR><BR>&nbsp;&nbsp; 今天早上突然想到会不会因为我的FreeNX客户端字体装的不全引起的。去www.nomachine.com一看，果然说有些老软件（hehe,emacs不幸就是非常老的软件了。gvim看来还是很与时俱进的。）不能用X Server的字体，而是会要求使用client端字体。下载了FreeNX的4个字体文件安装后，果然上面的错误不报了。<BR><BR>&nbsp;&nbsp; 但现在的错误变成了&quot;Undefined color &quot;black&quot;&quot;。这个错误我用gvim时也经常碰到，但一般也没事情。gvim只是报个warning而已，还是可以正常工作的。但emacs就比较娇气了，报了这个错，就立马退出。faint。<BR><BR>&nbsp;&nbsp; 在<A HREF="http://ubuntuforums.org/showthread.php?t=189921" TITLE="ubuntu论坛一篇关于emacs和FreeNX的文章">ubuntu论坛一篇关于emacs和FreeNX的文章</A>中找到了解决方法：运行以下命令：<BR>sudo ln -s /etc/X11/rgb.txt /usr/X11R6/lib<BR>sudo ln -s /etc/X11/rgb.txt /usr/lib/X11/rgb.txt<BR>sudo ln -s /etc/X11/rgb.txt /usr/share/X11/rgb.txt<BR>sudo ln -s /etc/X11/rgb.txt /usr/X11R6/lib/X11/rgb.txt<BR><BR>emacs就可以在FreeNX中正常打开了。]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 14 May 2008 12:44:21 -0700</pubDate><guid isPermalink="false">trailfire:markId:213998</guid></item><item><title>SEEING: FreeNX很赞啊</title><link>http://www.trailfire.com/enjoylife/marks/214006</link><description><![CDATA[<H4 ID="subjcns!9CC8A2D6014E5CF6!125" STYLE="margin-bottom: 0px;">FreeNX很赞啊</H4><DIV CLASS="bvMsg" ID="msgcns!9CC8A2D6014E5CF6!125"><FONT SIZE="2">FreeNX是一个*nix的远程图形登录软件。优点就是速度快，比vnc快多了，用我的iBook作客户端的时候对比尤其明显。缺点就是实现机制比较复杂，文档也不全，配置起来有点难度。所以趁现在刚配好，赶快记录一下，免得忘了：<BR><BR></FONT><OL><LI><FONT SIZE="2">在服务器端用RPM装了nx和freenx两个包以后，把/var/lib/nxserver/home/.ssh/client.id_dsa.key复制到客户端。</FONT></LI><LI><FONT SIZE="2">启动客户端界面，找到配置画面，有个“Key”的按钮，点击之后出现目前使用的key。选择import，选择刚才复制过来的文件。就可以了。</FONT></LI></OL><FONT SIZE="2">服务器在Redhat WS 4和Fedora Core 2上均测试通过。客户端用的是MacOSX10.3。</FONT></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 14 May 2008 13:08:14 -0700</pubDate><guid isPermalink="false">trailfire:markId:214006</guid></item><item><title>在fedora下安装freenx(页 1) - 文档专区 - 系统管理 - Linux论坛 - powered by Discuz! Archiver</title><link>http://www.trailfire.com/enjoylife/marks/214007</link><description><![CDATA[<B>在fedora下安装freenx</B><BR><BR><BR>作者: zbatecn 出自: http://www.linuxdiyf.com<BR>1. 需要先安装expect ,nc包, (yum -y install expect nc)<BR>2. 安装freenx server. (yum -y install freenx nx)， nxclient不能yum安装，需要下载后再安装.<BR>3.将原有的/var/lib/nxserver/home/.ssh 改名或者备份.从其它nxserver机子上rsync一个old .ssh来.<BR>$ nxserver --status #检查nxserver是否在己经启动.<BR>这里的从client login到server有时会产生以下错误:Server not installed or nx access disabled,就是由以第三部做错后产生的(请注意).<BR>4.完成上面,有时会产生弹出窗口让你查看: /root/.nx/temp/31175/sshlog.<BR>在sshlog中出现:/usr/libexec/nx/nxagent: error while loading shared libraries: /usr/lib/nx/libXcomp.so.2: cannot restore segment prot after reloc: Permission denied<BR>/usr/libexec/nx/nxserver: line 1283: 5192 Terminated sleep $AGENT_STARTUP_TIMEOUT<BR>Can&#39;t open /var/lib/nxserver/db/running/sessionId{B4A50EE6610A45F321F7D771073AB3D7}: No such file or directory.<BR>mv: cannot stat `/var/lib/nxserver/db/running/sessionId{B4A50EE6610A45F321F7D771073AB3D7}&#39;: No such file or directory<BR>Killed by signal 15.<BR>等错误时,原因是由于打开了selinux,关闭selinux policy可解决这个问题便可正常login.<BR><BR>[b]本文来自ChinaUnix博客，如果查看原文请点：[/b][url]http://blog.chinaunix.net/u/31/showart_573425.html[/url]]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 14 May 2008 13:10:45 -0700</pubDate><guid isPermalink="false">trailfire:markId:214007</guid></item><item><title>Data&amp;#039;s Weblog</title><link>http://www.trailfire.com/enjoylife/marks/214009</link><description><![CDATA[<H2 CLASS="storytitle"><A HREF="http://www.iuiuiu.com/plog/post/2/295" CLASS="aposted">Development with GNU Tools</A></H2><DIV CLASS="date">11:24, 12/06,2006</DIV><DIV CLASS="storycontent"><P>在 Tasuka blog 的<A TITLE="使用 GNU 工具作為軟體開發基本工具" TARGET="_blank" HREF="http://tasuka.idv.tw/blog/static.php?page=static061025-231032">这篇文章</A>中，发布了一个 XUL 格式制作的线上 PPT，在线阅读的地址是：<STRONG><A TARGET="_blank" HREF="http://tasuka.idv.tw/DevelopmentWithGNU/DevelopmentWithGNU.xul">Development with GNU Tools</A></STRONG> （需要使用 Firefox 1.5 以上的版本浏览），内容包括 UNIX/BSD/Linux 的发展历史及简介、GNU 开发平台及常用开发工具介绍、常见应用程序及支撑库等。</P><P>这个用 XUL 制作的 PPT，浏览的时候操作非常方便，可以快速在页面间切换、自动列出章节列表、设置自动播放等，看样子用 XUL 来制作这种在线阅读的东西是个不错的选择，有时间研究一下。</P><P><STRONG>Update:</STRONG> google 了一下，这个 XUL 是用高橋流簡報器制作的，对岸的兄弟将其中文化了，可以看这页：<A TARGET="_blank" HREF="http://magicdesign.blogspot.com/2006/06/blog-post_16.html">高橋流簡報器中文版</A>，里面有操作说明和编辑制作方法的介绍，<A TARGET="_blank" HREF="http://shoichi.chou.googlepages.com/takahashi_zh.zip">下载地址</A>。</P></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 14 May 2008 13:49:36 -0700</pubDate><guid isPermalink="false">trailfire:markId:214009</guid></item><item><title>Eric Pement home page</title><link>http://www.trailfire.com/enjoylife/marks/214391</link><description><![CDATA[<P CLASS="lnav"><A HREF="sed/index.htm">Sed</A></P><P CLASS="lnav"><A HREF="awk.htm">Awk</A></P><P CLASS="lnav"><A HREF="perl.htm">Perl</A></P><P CLASS="lnav"><A HREF="npark.htm">http://www.student.northpark.edu/pemente/<BR></A></P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Fri, 16 May 2008 14:49:05 -0700</pubDate><guid isPermalink="false">trailfire:markId:214391</guid></item><item><title>block commenting? - Vi - tribe.net</title><link>http://www.trailfire.com/enjoylife/marks/215096</link><description><![CDATA[<DIV CLASS="subject"><H2><A HREF="http://vieditor.tribe.net/thread/f44efcc7-02fc-454f-9d07-a2048ecd9d48#09d4bfff-c4a2-48c3-a7ea-8cd06b028ac3">Re: block commenting?</A></H2><DIV CLASS="date"><SPAN CLASS="stale">Thu, July 22, 2004 - 12:26 AM</SPAN></DIV></DIV><DIV CLASS="body">v<BR>Then highlight, then hit<BR>:<BR>you will get:<BR>:&#39;&lt;,&#39;&gt;<BR>Add to it:<BR>s/^/#<BR>Hit return and you are in business</DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 20 May 2008 18:44:53 -0700</pubDate><guid isPermalink="false">trailfire:markId:215096</guid></item><item><title>Linux Commands - A practical reference</title><link>http://www.trailfire.com/enjoylife/marks/215263</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 21 May 2008 18:36:44 -0700</pubDate><guid isPermalink="false">trailfire:markId:215263</guid></item><item><title>求关于eclipse-cpp-europa-winter-win32编写C或C++程序比较详细的教程</title><link>http://www.trailfire.com/enjoylife/marks/215482</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 22 May 2008 18:25:41 -0700</pubDate><guid isPermalink="false">trailfire:markId:215482</guid></item><item><title>ssh uses fake authentication data for X11 forwarding.</title><link>http://www.trailfire.com/enjoylife/marks/219721</link><description><![CDATA[<FONT COLOR="black" FACE="sans-serif" SIZE="4"><B>Technical Bulletin</B></FONT> <A HREF="bulletins.php"><FONT COLOR="blue"><U>[Return to bulletin list]</U></FONT></A><BR><PRE>Date: 2004-06-24<BR><BR>Description: ssh uses fake authentication data for X11 forwarding.<BR><BR>Affects: OpenSSH<BR><BR>Summary: When ssh is unable to get Xauthority information for the<BR>display, it makes up some fake authentication data and prints a<BR>warning.<BR><BR>Symptoms: ssh prints &quot;Warning: No xauth data; using fake<BR>authentication data for X11 forwarding.&quot;<BR><BR>When ssh is unable to get Xauthority information for the display, it<BR>makes up some fake authentication data and prints:<BR><BR>Warning: No xauth data; using fake authentication data for X11<BR>forwarding.<BR><BR>This happens in particular if there is no entry for the local display<BR>(of the form :D.S or of the form $HOTSNAME/unix:D.S) in ~/.Xauthority on<BR>local host (the host where you issued ssh).  To see the list of display<BR>names, run:<BR><BR>$ xauth list<BR><BR>To fix this problem, run the following command on the local host:<BR><BR>$ xauth add `echo &quot;${DISPLAY}&quot; | sed &#39;s/.*\(:.*\)/\1/&#39;` . `mcookie`<BR><BR>Make sure that the command xauth and mcookie on your PATH, otherwise<BR>use the absolute pathname for these commands.<BR><BR>xauth is the program to manage the authorization information used in<BR>connecting to the X server.<BR><BR>echo &quot;${DISPLAY}&quot; | sed &#39;s/.*\(:.*\)/\1/&#39; extracts the display and<BR>screen numbers in the form :D.S (e.g., :10) from DISPLAY environment<BR>variable of the form HOSTNAME:D.S (e.g., localhost:10).<BR><BR>. is an abbreviation for MIT-MAGIC-COOKIE-1 protocol name.<BR><BR>mcookie generates magic cookies for xauth.<BR></PRE>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 10 Jun 2008 11:44:40 -0700</pubDate><guid isPermalink="false">trailfire:markId:219721</guid></item><item><title>How To Find and Overcome Shell Command Line Length Limitations</title><link>http://www.trailfire.com/enjoylife/marks/219768</link><description><![CDATA[<BR><DIV ID="EchoTopic"><DIV STYLE="float: left; margin-top: 0px; margin-right: 5px;">&lt;!--
google_ad_client = &quot;pub-7825705102693166&quot;;
google_ad_slot = &quot;1901335248&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
 </DIV><DIV STYLE="float: right; margin-top: 0px; margin-left: 5px;"><A TITLE="See all Bash/Shell scripting related FAQ" HREF="/faq/category/bash-shell/"><IMG SRC="http://figs.cyberciti.biz/3rdparty/terminal.png" BORDER=""></A></DIV><P><SPAN STYLE="color: rgb(255, 0, 0);">Q.</SPAN> While using mv or rm command I get command line length error (Argument list too long error). How do I find out current running shell command line length limitations? How do I overcomes these limitations while writing UNIX / BSD / Linux shell utilities?<BR><SPAN ID="more-1076"><BR><SPAN STYLE="color: rgb(0, 153, 0);">A.</SPAN> All shell have / has a limit for the command line length. UNIX / Linux / BSD system has a limit on how many bytes can be used for the <STRONG>command line argument</STRONG> and <STRONG>environment variables</STRONG>. When you start a new process or type a command these limitations are applied and you will see an error message as follows on screen:</SPAN></P></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 10 Jun 2008 18:41:14 -0700</pubDate><guid isPermalink="false">trailfire:markId:219768</guid></item><item><title>cscope: Interactively Examining a C Program</title><link>http://www.trailfire.com/enjoylife/marks/219840</link><description><![CDATA[^d <A NAME="9921">Exit cscope.]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 11 Jun 2008 13:56:04 -0700</pubDate><guid isPermalink="false">trailfire:markId:219840</guid></item><item><title>Cool Solutions: /dev/null</title><link>http://www.trailfire.com/enjoylife/marks/220622</link><description><![CDATA[<P><STRONG>Capturing STDERR only</STRONG></P><PRE>]$ cmd 2&gt;&amp;1 1&gt;/dev/null</PRE><P>You may be thinking, that if I am redirectin</P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Fri, 13 Jun 2008 16:11:04 -0700</pubDate><guid isPermalink="false">trailfire:markId:220622</guid></item><item><title>how to delete line with matching text and line immediately after - Page 2 - The UNIX Forums</title><link>http://www.trailfire.com/enjoylife/marks/220624</link><description><![CDATA[#!/bin/sh<BR>f=0<BR>while IFS= read -r line<BR>do<BR>&nbsp;&nbsp;&nbsp; case $line in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *pattern* ) f=1; continue ;;<BR>&nbsp;&nbsp;&nbsp; esac<BR>&nbsp;&nbsp;&nbsp; if [ &quot;$f&quot; -eq 1 ]; then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f=0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue<BR>&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo $line<BR>&nbsp; &nbsp; fi<BR>done &lt;&quot;file&quot;]]></description><category>linux</category><author>enjoylife</author><pubDate>Fri, 13 Jun 2008 16:28:40 -0700</pubDate><guid isPermalink="false">trailfire:markId:220624</guid></item><item><title>about &amp;quot;rm&amp;quot; command and recycle bin - Linux Forums</title><link>http://www.trailfire.com/enjoylife/marks/220637</link><description><![CDATA[This is for the gnome trash, I&#39;m not sure where KDEs trash is located... But put this somewhere in your users ~/.bashrc:<BR><DIV STYLE="margin: 5px 20px 20px;"><DIV STYLE="margin-bottom: 2px;" CLASS="smallfont">Code:</DIV><PRE STYLE="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;" DIR="ltr" CLASS="alt2">alias rm=&#39;mv --target-directory ~/.Trash&#39;</PRE></DIV>If you now rm a file or directory as that user, it should go to trash. Beware that you have to re-login first!]]></description><category>linux</category><author>enjoylife</author><pubDate>Fri, 13 Jun 2008 17:38:32 -0700</pubDate><guid isPermalink="false">trailfire:markId:220637</guid></item><item><title>Catching user input</title><link>http://www.trailfire.com/enjoylife/marks/223118</link><description><![CDATA[<DIV CLASS="table"><P><B>Table 8-2. Options to the read built-in</B></P><TABLE CLASS="CALSTABLE" BORDER="1"><THEAD><TR><TH ALIGN="left" VALIGN="middle">Option</TH><TH ALIGN="left" VALIGN="middle">Meaning</TH></TR></THEAD><TBODY><TR><TD ALIGN="left" VALIGN="middle">-a <TT CLASS="varname">ANAME</TT></TD><TD ALIGN="left" VALIGN="middle">The words are assigned to sequential indexes of the array variable <TT CLASS="varname">ANAME</TT>, starting at 0. All elements are removed from <TT CLASS="varname">ANAME</TT> before the assignment. Other <TT CLASS="varname">NAME</TT> arguments are ignored.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-d <TT CLASS="varname">DELIM</TT></TD><TD ALIGN="left" VALIGN="middle">The first character of <TT CLASS="varname">DELIM</TT> is used to terminate the input line, rather than newline.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-e</TD><TD ALIGN="left" VALIGN="middle"><B CLASS="command">readline</B> is used to obtain the line.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-n <TT CLASS="varname">NCHARS</TT></TD><TD ALIGN="left" VALIGN="middle"><B CLASS="command">read</B> returns after reading <TT CLASS="varname">NCHARS</TT> characters rather than waiting for a complete line of input.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-p <TT CLASS="varname">PROMPT</TT></TD><TD ALIGN="left" VALIGN="middle">Display <TT CLASS="varname">PROMPT</TT>, without a trailing newline, before attempting to read any input. The prompt is displayed only if input is coming from a terminal.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-r</TD><TD ALIGN="left" VALIGN="middle">If this option is given, backslash does not act as an escape character. The backslash is considered to be part of the line. In particular, a backslash-newline pair may not be used as a line continuation.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-s</TD><TD ALIGN="left" VALIGN="middle">Silent mode. If input is coming from a terminal, characters are not echoed.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-t <TT CLASS="varname">TIMEOUT</TT></TD><TD ALIGN="left" VALIGN="middle">Cause <B CLASS="command">read</B> to time out and return failure if a complete line of input is not read within <TT CLASS="varname">TIMEOUT</TT> seconds. This option has no effect if <B CLASS="command">read</B> is not reading input from the terminal or from a pipe.</TD></TR><TR><TD ALIGN="left" VALIGN="middle">-u <TT CLASS="varname">FD</TT></TD><TD ALIGN="left" VALIGN="middle">Read input from file descriptor <TT CLASS="varname">FD</TT>.</TD></TR></TBODY></TABLE></DIV><P>This is a straightforward example, improving on the <TT CLASS="filename">leap</TT></P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 19 Jun 2008 17:23:22 -0700</pubDate><guid isPermalink="false">trailfire:markId:223118</guid></item><item><title>Chris Wilson - Re: No color when using ls</title><link>http://www.trailfire.com/enjoylife/marks/224278</link><description><![CDATA[<PRE STYLE="margin: 0em;">REMOTE_HOST=`set | grep SSH_CLIENT | cut -f2 -d&quot;&#39;&quot; | cut -f1 -d&quot; &quot;`</PRE><BR><PRE STYLE="margin: 0em;"># If connecting, via SSH, from home machine:
# --- IP address removed for privacy ---
if [ &quot;$REMOTE_HOST&quot; == &quot;xxx.xxx.xxx.xxx&quot; ]
then
        DISPLAY=&quot;$REMOTE_HOST:10&quot;
# Otherwise, just set to the standard :0
else
        DISPLAY=&quot;:0&quot;
fi</PRE>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 24 Jun 2008 16:15:42 -0700</pubDate><guid isPermalink="false">trailfire:markId:224278</guid></item><item><title>Brian Dessent - Re: Grep for tab character</title><link>http://www.trailfire.com/enjoylife/marks/224426</link><description><![CDATA[Try &quot;grep -P &#39;\t&#39;&quot; to use perl-compatible regexps. Note that this is a specific capability of GNU grep, so it will not be portable to systems that use a different grep. It might be more portable to use &quot;awk &#39;/\t/&#39;&quot;. Or to insert a literal tab as others said. Brian<BR><BR><BR>or<BR><BR>grep&nbsp; &#39;123[[:space:]]&#39;&nbsp; ./a.txt<BR>grep -P &#39;123\t&#39;&nbsp; ./a.txt<BR><BR>stty -a]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 25 Jun 2008 13:39:42 -0700</pubDate><guid isPermalink="false">trailfire:markId:224426</guid></item><item><title>VIM syntax enable doesn&amp;#039;t work in Edgy [Archive] - Ubuntu Forums</title><link>http://www.trailfire.com/enjoylife/marks/224676</link><description><![CDATA[Installing vim-full did not work for me. Here&#39;s the problem as I see it.<BR><BR>(Go to bottom of this post to see how I fixed this.)<BR><BR>I run vim, which actually calls /usr/bin/vim.full<BR>I open up vim by typing vim (or /usr/bin/vim.full) and I type &quot;:set all&quot;. This shows my runtimepath set as follows:<BR>runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim64,<BR>/usr/share/vim/vimfiles/after,~/.vim/after<BR><BR>That runtime path is wrong for the version of vim I have installed.(version 7.0.35, 1:7.0-035+1ubuntu5(edgy)) It should be set as I describe below.<BR><BR>I don&#39;t have any ~/.vim* entries, so I know I&#39;m not setting the runtimepath elsewhere.<BR><BR>My &quot;/etc/vim/vimrc&quot; file should be getting referenced and then issuing this command:<BR>runtime! debian.vim<BR><BR>I find debian.vim in /usr/share/vim/vim70/debian.vim, and it says the runtimepath is:<BR>set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/addons,<BR>/usr/share/vim/vimfiles,/usr/share/vim/vim70,/usr/share/vim/vimfiles/after,<BR>/usr/share/vim/addons/after,/var/lib/vim/addons/after,~/.vim/after<BR><BR>STOP!<BR><BR>I found the problem as I was writing this. I found that my VIMRUNTIME environment variable was being set in my .bashrc file.<BR>export VIMRUNTIME=/usr/share/vim/vim64<BR><BR>I changed it to<BR>export VIMRUNTIME=/usr/share/vim/vim70<BR><BR>and now it sets the runtimepath correctly.<BR><BR>Phew!]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 26 Jun 2008 15:21:34 -0700</pubDate><guid isPermalink="false">trailfire:markId:224676</guid></item><item><title>Download VMware Server - Registration</title><link>http://www.trailfire.com/enjoylife/marks/226600</link><description><![CDATA[&nbsp;&nbsp;&nbsp;<BR><H4>Your serial number(s):</H4>90H2W-Y4ZA0-13P5H-4UJVW<BR>900AW-Y4Y2M-13QEJ-4R1L1<BR>92M29-Y6V8M-11L5N-4K1HH<BR>92H2W-Y4CA5-1C2EH-4R0RE<BR>9A508-YDZ2J-117EN-4H68H]]></description><category>linux</category><author>enjoylife</author><pubDate>Mon, 07 Jul 2008 11:30:01 -0700</pubDate><guid isPermalink="false">trailfire:markId:226600</guid></item><item><title>Installing and configuring Apache on Windows XP: Virtual Hosts</title><link>http://www.trailfire.com/enjoylife/marks/226602</link><description><![CDATA[<H2>Removing /manual/, /icon/, and /cgi-bin/ aliases</H2><P CLASS="first">The Apache web server comes default with three aliases defined, which also show up for each virtual host. Moreover, they can mask a directory in your document root if it has the same name.</P><P>You might want to comment out line 477-484 ( Alias /icons/ up until and including ), line 491-505 (AliasMatch ^/manual... up until and including ), and line 515-526 (ScriptAlias /cgi-bin/ up until and including ).</P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Mon, 07 Jul 2008 11:56:55 -0700</pubDate><guid isPermalink="false">trailfire:markId:226602</guid></item><item><title>How To Install VMware Tools on Ubuntu Guests : Ubuntu Tutorials : Dapper - Feisty - Gutsy - Hardy</title><link>http://www.trailfire.com/enjoylife/marks/226837</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 08 Jul 2008 17:20:26 -0700</pubDate><guid isPermalink="false">trailfire:markId:226837</guid></item><item><title>Starting VMware Tools Automatically</title><link>http://www.trailfire.com/enjoylife/marks/226840</link><description><![CDATA[<DIV CLASS="B_Body"><A NAME="1076000">You might find it helpful to configure your guest operating system so VMware Tools</A> starts when you start your X server. The steps for doing so vary depending on your Linux distribution and your desktop environment. Check your operating system documentation for the appropriate steps to take.</DIV><DIV CLASS="B_Body"><A NAME="1021079">For example, in a Red Hat Linux 7.1 guest using GNOME, follow these steps.</A></DIV><DIV STYLE="margin-left: 0pt;" CLASS="LF_ListFirst_outer"><TABLE ID="SummaryNotRequired_np1021080" BORDER="" CELLPADDING="" CELLSPACING=""><TBODY><TR STYLE="vertical-align: baseline;"><TD><DIV STYLE="width: 18pt; white-space: nowrap;" CLASS="LF_ListFirst_inner">1</DIV></TD><TD WIDTH="100%"><DIV CLASS="LF_ListFirst_inner"><A NAME="1021080">Open the Startup Programs screen in the GNOME Control Center.</A></DIV></TD></TR></TBODY></TABLE></DIV><DIV CLASS="B1_BodyIndent"><SPAN CLASS="Interface"><A NAME="1021084">Main Menu</A></SPAN> (click the foot icon in the lower left corner of the screen) &gt; <SPAN CLASS="Interface">Programs</SPAN> &gt; <SPAN CLASS="Interface">Settings</SPAN> &gt; <SPAN CLASS="Interface">Session</SPAN> &gt; <SPAN CLASS="Interface">Startup Programs</SPAN></DIV><DIV STYLE="margin-left: 0pt;" CLASS="L_List_outer"><TABLE ID="SummaryNotRequired_np1021085" BORDER="" CELLPADDING="" CELLSPACING=""><TBODY><TR STYLE="vertical-align: baseline;"><TD><DIV STYLE="width: 18pt; white-space: nowrap;" CLASS="L_List_inner">2</DIV></TD><TD WIDTH="100%"><DIV CLASS="L_List_inner"><A NAME="1021085">Click</A> <SPAN CLASS="Interface">Add</SPAN>.</DIV></TD></TR></TBODY></TABLE></DIV><DIV STYLE="margin-left: 0pt;" CLASS="L_List_outer"><TABLE ID="SummaryNotRequired_np1021119" BORDER="" CELLPADDING="" CELLSPACING=""><TBODY><TR STYLE="vertical-align: baseline;"><TD><DIV STYLE="width: 18pt; white-space: nowrap;" CLASS="L_List_inner">3</DIV></TD><TD WIDTH="100%"><DIV CLASS="L_List_inner"><A NAME="1021119">In the</A> <SPAN CLASS="Interface">Startup Command</SPAN> field, enter <SPAN CLASS="command">vmware-toolbox</SPAN>.</DIV></TD></TR></TBODY></TABLE></DIV><DIV STYLE="margin-left: 0pt;" CLASS="L_List_outer"><TABLE ID="SummaryNotRequired_np1021126" BORDER="" CELLPADDING="" CELLSPACING=""><TBODY><TR STYLE="vertical-align: baseline;"><TD><DIV STYLE="width: 18pt; white-space: nowrap;" CLASS="L_List_inner">4</DIV></TD><TD WIDTH="100%"><DIV CLASS="L_List_inner"><A NAME="1021126">Click</A> <SPAN CLASS="Interface">OK</SPAN>, click <SPAN CLASS="Interface">OK</SPAN> again, and close the GNOME Control Center.</DIV></TD></TR></TBODY></TABLE></DIV><DIV CLASS="B_Body"><A NAME="1021134">The next time you start X, VMware Tools also starts.</A></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 08 Jul 2008 17:32:48 -0700</pubDate><guid isPermalink="false">trailfire:markId:226840</guid></item><item><title>yum repository setup and update</title><link>http://www.trailfire.com/enjoylife/marks/226973</link><description><![CDATA[install yum:<BR><BR><OL><LI>wget <A HREF="ftp://rpmfind.net/linux/PLD/dists/ac/ready/i386/libsqlite-2.8.15-1.i386.rpm" TARGET="_top">ftp://rpmfind.net/linux/PLD/dists/ac/ready/i386/libsqlite-2.8.15-1.i386.rpm</A></LI><LI>wget <A HREF="ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-sqlite-1.0.1-1.2.el4.rf.i386.rpm" TARGET="_top">ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-sqlite-1.0.1-1.2.el4.rf.i386.rpm</A></LI><LI>wget <A HREF="ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-elementtree-1.2.6-7.el4.rf.i386.rpm" TARGET="_top">ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-elementtree-1.2.6-7.el4.rf.i386.rpm</A></LI><LI>wget <A HREF="ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-urlgrabber-2.9.6-1.2.el4.rf.noarch.rpm" TARGET="_top">ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-urlgrabber-2.9.6-1.2.el4.rf.noarch.rpm</A></LI><LI>wget <A HREF="ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/yum-2.4.2-0.4.el4.rf.noarch.rpm" TARGET="_top">ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/yum-2.4.2-0.4.el4.rf.noarch.rpm</A></LI><LI>rpm -Uvh libsqlite-2.8.15-1.i386.rpm</LI><LI>rpm -Uvh python-elementtree-1.2.6-7.el4.rf.i386.rpm</LI><LI>rpm -Uvh python-sqlite-1.0.1-1.2.el4.rf.i386.rpm</LI><LI>rpm -Uvh python-urlgrabber-2.9.6-1.2.el4.rf.noarch.rpm</LI><LI>rpm -Uvh yum-2.4.2-0.4.el4.rf.noarch.rpm</LI></OL><BR><BR><BR>Argh! Still foiled! But reading the man page for yum tells us to look at <A HREF="http://linux.duke.edu/yum/">http://linux.duke.edu/yum/</A>, which tells us... that there are simply too many repositories to list any more, so ask a mailing list or a friend. In this case, we will copy <A HREF="yum_repos.tar.gz">my list of repositories,</A> which I got from people in <A HREF="http://www.linuxchix.org">LinuxChix.</A><PRE># cd /<BR># tar xzvf yum_repos.tar.gz<BR></PRE>Try again:<PRE>$ yum install xsnow<BR></PRE>Now run it:<PRE>$ xsnow<BR></PRE>And let it snow!<BR><BR>install httpd-devel<BR><BR>then yum update &amp;&amp; yum install httpd-devel]]></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 09 Jul 2008 12:28:32 -0700</pubDate><guid isPermalink="false">trailfire:markId:226973</guid></item><item><title>Ben Green&amp;#039;s Wiki - Linux</title><link>http://www.trailfire.com/enjoylife/marks/227621</link><description><![CDATA[<H3>Finding stuff in files</H3><P>How many times have you used the Windows &quot;Find Files&quot; thingy and then typed in some words you know are somewhere in the file you want to find, how does one do this from a command line in bash? I hope to tell you :-).</P><P CLASS="vspace">find . -name *.txt | xargs -I {} grep -n -H -e pattern &#39;{}&#39;<BR>find . -name *.txt | xargs -replace={} grep -n -H -e pattern &#39;{}&#39;</P><P CLASS="vspace">This is a nice thing to know, it will find all the files in the current directory (.) and all sub-directories that end with .txt, then will search inside them for pattern. This command also works when directories and file names have <STRONG>spaces</STRONG> in them. Just as a little note: personally I think that spaces have no place in filenames and, under penalty of death, you should not put spaces in <STRONG>any</STRONG> of your filenames.</P><P CLASS="vspace"><STRONG>grep</STRONG> is a very useful tool and works with something called a <A HREF="http://en.wikipedia.org/wiki/Regular_expression" CLASS="urllink">regular expression</A> I also found a really nice tool, written in C, for compiling and using Regular Expressions in your programmes <A HREF="http://www.bengreen.eu/pmwiki/pmwiki.php?n=Programming.RegularExpressons" CLASS="wikilink">Programming.RegularExpressons</A>.</P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Sat, 12 Jul 2008 23:36:34 -0700</pubDate><guid isPermalink="false">trailfire:markId:227621</guid></item><item><title>Ubuntu Tips</title><link>http://www.trailfire.com/enjoylife/marks/231129</link><description><![CDATA[<DIV CLASS="post_title"><DIV CLASS="top"><DIV CLASS="right"><DIV CLASS="left"><DIV CLASS="tl"><DIV CLASS="tr"><H2 CLASS="title" ID="post-17"><A TITLE="Permanent Link to Recover From Crashed X Window Session" HREF="http://www.ubuntutips.org/?p=17">Recover From Crashed X Window Session</A></H2><SMALL CLASS="title">Posted by Tips on December 25th, 2006</SMALL></DIV></DIV></DIV></DIV></DIV></DIV><DIV CLASS="br"><DIV CLASS="bl"><DIV CLASS="content"><P>Since having google start to spy on the website I’ve noticed a trend with viewers.&nbsp; I’m going to assume that the #2 spot of firefox users on Windows are people who’ve hosed their systems in some manner and are looking for help.</P><P>First tip with X-Windows or X for short is to remember to make a backup of your original /etc/X11/xorg.conf file.</P><P>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig.bak</P><P>That way if there is any time that you end up at the command prompt and cant get X up you dont have to reboot into Windows or jump on the other machine to see what went wrong.</P><P>Once you have copied the original back to /etc/X11/xorg.conf issue the following commands to restart X.</P><P>sudo /etc/init.d/gdm restart</P><P>or for KDE users</P><P>sudo /etc/init.d/kdm restart</P><P>You should see a bit of flashing screen and then be welcomed back by a graphical login prompt!</P><P>What if that does not work?</P><P>Lets consider you just added a new video card.</P><P>If the first was a ATI card and the new one is a Nvidia card you have to do two things.</P><P>ATI cards typically use the Driver&nbsp;&nbsp;&nbsp; “radeon” setting in the xorg.conf file under Section &nbsp;&nbsp;&nbsp; “Device”.&nbsp; You will have to edit the file.</P><P>After backing up your original of course!</P><P>sudo vi /etc/X11/xorg.conf</P><P>hit the backslash / key</P><P>type in the string you wish to find in this case radeon and hit enter</P><P>you should get to a uncommented line that looks like this</P><P>Driver&nbsp;&nbsp; “Radeon”</P><P>hit escape move to the R in radeon and hit the x key until radeon is gone and you have “” left.</P><P>hit the right key to put the cursor under the second ” and then type i for insert then type in nv so it looks like</P><P>Driver &nbsp;&nbsp;&nbsp; “nv”</P><P>once that’s done hit escape again.&nbsp; then type a colon : and then type wq for write quit.</P><P>If you screw up just type q! after hitting escape and then colon to quit without saving.&nbsp; Vi is a bit scary at first but recovery is easy if you remember to save a copy before and also to save only when satisified with your changes.&nbsp; q! will be your best friend!</P><P>Once that’s done follow the above instructions for restarting GDM or KDM and hopefully you’ll be greeted with your X login screen again.</P><P>If you’re going the other way from Nvidia to ATI (I really pity you since driver support is still pretty crappy) just reverse the driver strings.</P><P>Enjoy and Merry Christmas!</P></DIV></DIV></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 31 Jul 2008 12:47:06 -0700</pubDate><guid isPermalink="false">trailfire:markId:231129</guid></item><item><title>Run Ubuntu 7.10 from Windows without rebooting via QEMU</title><link>http://www.trailfire.com/enjoylife/marks/236173</link><description><![CDATA[<P>This tutorial explains How To Run Ubuntu 7.10 from a portable USB device or from a folder within Windows. As noted before, the advantage to using Qemu hardware emulation as opposed to a native USB boot is that you can to plug your USB stick or portable hard drive into any available Windows PC and run a completely separate Linux operating system without rebooting the Windows Host PC. In addition, by utilizing the casper persistent feature, you can save your personal settings and changes back to the img located in the installation directory and then restore those saved settings on each boot.</P><P><SPAN ID="more-333"></P><P>Using this tutorial, Ubuntu 7.10 can be run from within Windows 98, NT, 2000, XP or Vista without rebooting. Ubuntu 7.10 runs from it&#39;s own directory either on a portable USB device or directly from a folder on your Windows computer.</P><P><BR></P><P>http://lifehacker.com/5042630/unetbootin-creates-usb+bootable-linux-the-easy-way<BR></P><P><BR></P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 28 Aug 2008 11:37:03 -0700</pubDate><guid isPermalink="false">trailfire:markId:236173</guid></item><item><title>Feature: Run Windows Apps Seamlessly Inside Linux</title><link>http://www.trailfire.com/enjoylife/marks/236178</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 27 Aug 2008 15:39:50 -0700</pubDate><guid isPermalink="false">trailfire:markId:236178</guid></item><item><title>Linux.com :: Run Windows and Linux without virtualization</title><link>http://www.trailfire.com/enjoylife/marks/236179</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 27 Aug 2008 15:52:26 -0700</pubDate><guid isPermalink="false">trailfire:markId:236179</guid></item><item><title>How to install Windows programs in Linux using Wine - Simple Help</title><link>http://www.trailfire.com/enjoylife/marks/236180</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Wed, 27 Aug 2008 16:01:27 -0700</pubDate><guid isPermalink="false">trailfire:markId:236180</guid></item><item><title>Complete Dose of Linux Poison: Install windows Application using wine-doors (single Click)</title><link>http://www.trailfire.com/enjoylife/marks/236336</link><description><![CDATA[<H3 CLASS="post-title entry-title"><A HREF="http://linuxpoison.blogspot.com/2008/08/install-windows-application-using-wine.html">Install windows Application using wine-doors (single Click)</A></H3><DIV CLASS="post-header-line-1"><DIV CLASS="post-body entry-content"><DIV STYLE="float: right; margin-left: 10px;">digg_url = &#39;http://linuxpoison.blogspot.com/2008/08/install-windows-application-using-wine.html&#39;;
 </DIV><A HREF="http://www.wine-doors.org/wordpress/">Wine-doors</A> is an application designed to make installing windows software on Linux, Solaris or other Unix systems easier. Wine-doors is essentially a package management tool for windows software on Linux systems. Most Linux desktop users are familiar with package management style application delivery, so it made sense to apply this model to windows software.</DIV></DIV>]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 28 Aug 2008 11:59:36 -0700</pubDate><guid isPermalink="false">trailfire:markId:236336</guid></item><item><title>Frank&amp;#039;s Corner, Running Windows applications and games on Linux</title><link>http://www.trailfire.com/enjoylife/marks/236337</link><description><![CDATA[<H1>Wine Quickstart Guide</H1>This Quickstart Guide will help you to get Wine running. Make sure you have Wine installed. If you don&#39;t check this page on installing Wine: <A TARGET="_blank" HREF="http://winehq.org/site/docs/wineusr-guide/getting-wine">http://winehq.org/site/docs/wineusr-guide/getting-wine</A><BR><BR><H1>Installing an application</H1>In this guide I will show you how to install MS Office 97.<BR>In order to install an application you must know the name of the file to run and the location of the file.<BR>In this example I must run setup.exe which is loacted in /media/cdrom.<BR>To install Office I must run the following command:<BR>]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 28 Aug 2008 12:02:53 -0700</pubDate><guid isPermalink="false">trailfire:markId:236337</guid></item><item><title>Wine file browser?? Where is it - Ubuntu Forums</title><link>http://www.trailfire.com/enjoylife/marks/236421</link><description><![CDATA[Download Sidenet, and it&#39;ll install some cool stuff (like IE and the explorer style browser)<BR><BR><A HREF="http://sidenet.ddo.jp/winetips/config.html" TARGET="_blank">http://sidenet.ddo.jp/winetips/config.html</A>]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 28 Aug 2008 18:56:25 -0700</pubDate><guid isPermalink="false">trailfire:markId:236421</guid></item><item><title>WINE for Ubuntu tut? - SRL-Forums</title><link>http://www.trailfire.com/enjoylife/marks/236422</link><description><![CDATA[Installing Windows Applications Using Wine<BR><BR>To install Windows applications using Wine, follow these instructions:<BR><BR>1.<BR><BR>Download the Windows application from any source (e.g. download.com). Download the .EXE (executable).<BR>2.<BR><BR>Place it in a convenient directory (e.g. the desktop, or home folder).<BR>3.<BR><BR>Open the terminal, and cd into the directory where the .EXE is located.<BR>4.<BR><BR>Type wine the-name-of-the-application.extension (e.g. wine realplayer.exe).<BR><BR>This will start the .EXE using Wine. If it is an installer, it should then run as it would in Windows. If the application asks for a directory to install the application to, select put it under C:\Program Files.<BR><BR>To start/run Windows programs using Wine<BR><BR>After installing an application using the directions above, those applications can be started and used by entering wine programname.exe (e.g. wine realplayer.exe). When done, close the application as one would normally. You must run the installed executable, which will by default be in the virtual Windows drive created by Wine, at ~/.wine/drive_c. Generally programs will install themselves somewhere under Program Files inside the virtual Windows drive, following Windows conventions.<BR><BR>You can also use the Wine file browser, by running winefile in a terminal. Clicking the C:\ button in the toolbar will open a window where you can browse the virtual Windows drive created in .wine. Doubleclicking an executable in the Wine file browser will run it in Wine.<BR><BR>Instead of having to always enter the terminal or use the Wine file browser, you may also create a, for example, desktop icon, and start a Wine application using that icon. To do this, right click on the desktop and select &quot;Create a launcher.&quot; If you wish, select an icon from the list of available icons (or browse to an icon you would like to use), fill out other information that is requested (Name, generic name, etc.). For the command, type in wine the-location-of-the-program.exe (e.g. wine /home/john/.wine/realplayer.exe). The most important part of creating a launcher is the command, and a few other pieces of information are not necessary (e.g. generic name). Make sure not to select &quot;Run in terminal.&quot; This completes the process.<BR><BR>In some cases the application requires to be running from particular location. In this case create launcher with command sh -c &quot;cd &#39;/home/USER/.wine/drive_c/Program Files/Appdir/&#39;; wine &#39;/home/USER/.wine/drive_c/Program Files/Appdir/game.exe&#39;&quot; Of course you need to replace USER and Appdir with proper data.<BR><BR>If you desire to have an icon on a panel, create a launcher on the panel of choice. Do this by right-clicking the panel, selecting &quot;Add to Panel,&quot; and selecting &quot;Custom Application Launcher.&quot; This will ask you for the same information as before.<BR><BR>Alternatively, to make life easier, you can set it so wine will automatically open .exe files files for you - instead of using Wine File to locate the file each time. To do so, right click on the .exe file, select Properties, and then select the Open With tab. Click the &#39;Add&#39; button, and then click on &#39;Use a custom command&#39;. In the line that appears, type in wine, then click Add, and Close. Now all .exe files will be automatically opened by Wine, so you can use Nautilus to browse and open them instead of the Wine File.<BR><BR>Uninstalling Wine Applications<BR><BR>Open up a terminal window and type &quot;uninstaller&quot; - this will open up a program similar to Windows&#39; &quot;add/remove programs&quot; control panel, allowing you to uninstall applications from a Wine installation. Running uninstall programs directly via Wine should also work normally. Alternatively, you could also simply delete the folder of the application. However, as when done in Windows, this method will be &quot;unclean&quot; and will not remove the program&#39;s configuration from the Wine registry like using an uninstaller will.<BR>Configuring Wine<BR><BR>On the command line or in Run Application, type winecfg.<BR>Adding CD and DVD drives to Wine]]></description><category>linux</category><author>enjoylife</author><pubDate>Thu, 28 Aug 2008 19:00:33 -0700</pubDate><guid isPermalink="false">trailfire:markId:236422</guid></item><item><title>How-To: Find files on your computer with find | Debian/Ubuntu Tips &amp;amp; Tricks</title><link>http://www.trailfire.com/enjoylife/marks/238915</link><description><![CDATA[find /home/ -name &#39;*.avi&#39; -a -size +700M -mtime -15 -exec mv &#39;{}&#39; /my/new/movies/ \;]]></description><category>linux</category><author>enjoylife</author><pubDate>Mon, 08 Sep 2008 21:32:49 -0700</pubDate><guid isPermalink="false">trailfire:markId:238915</guid></item><item><title>Debian/Ubuntu Tips &amp;amp; Tricks | Debuntu.org: .deb packages, Unix/Linux Tutorials and Articles.</title><link>http://www.trailfire.com/enjoylife/marks/238916</link><description></description><category>linux</category><author>enjoylife</author><pubDate>Mon, 08 Sep 2008 21:33:14 -0700</pubDate><guid isPermalink="false">trailfire:markId:238916</guid></item><item><title>How to Change MTU (Maximum Transmission Unit) of network interface in Ubuntu Linux -- Ubuntu Geek</title><link>http://www.trailfire.com/enjoylife/marks/238922</link><description><![CDATA[<P>To change the MTU of an interface on GNU/Linux, you just need to use ifconfig command to do so, like this for example</P><BLOCKQUOTE><P>sudo ifconfig eth0 mtu 1492</P></BLOCKQUOTE><P>To change it permanently on Debian, put it in the /etc/network/interfaces file .where almost all network parameters are found. To do this, just add a line mtu to the definition of your interface and save the file.</P><BLOCKQUOTE><P>sudo gedit /etc/network/interfaces</P></BLOCKQUOTE><P><STRONG>Example</STRONG></P><P>iface eth0 inet static<BR>address 192.168.0.1<BR>network 192.168.0.0<BR>gateway 192.168.0.254<BR>netmask 255.255.255.0<BR>mtu 1492</P><P><STRONG>Daiup Users</STRONG></P><P>For dialup users: the Maximum Transmission Unit (MTU) value can be changed within the file<BR>/etc/ppp/options</P>]]></description><category>linux</category><author>enjoylife</author><pubDate>Mon, 08 Sep 2008 21:44:40 -0700</pubDate><guid isPermalink="false">trailfire:markId:238922</guid></item><item><title>Graphviz - Why draw when you can code? - O&amp;#039;Reilly Mac DevCenter Blog</title><link>http://www.trailfire.com/enjoylife/marks/252067</link><description><![CDATA[<P>ou can find the emacs lisp file <A HREF="http://users.skynet.be/ppareit/projects/graphviz-dot-mode/graphviz-dot-mode.html">here</A>. Below is the line you need to add to your .bashrc file (if your using bash as your shell) if you want to be able to open *.dot files from Emacs.</P><PRE>(load-file &quot;PATH_TO_FILE/graphviz-dot-mode.el&quot;)<BR><BR>http://www.linux.com/articles/49655<BR></PRE>]]></description><category>linux</category><author>enjoylife</author><pubDate>Tue, 11 Nov 2008 13:05:31 -0800</pubDate><guid isPermalink="false">trailfire:markId:252067</guid></item></channel></rss>
