<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-12243715</id><updated>2012-01-10T14:45:36.542-08:00</updated><title type='text'>Linux Journal | Linux Tips</title><subtitle type='html'>Bits and pieces of Linux tips, tricks and problem resolutions</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>82</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12243715.post-111397835127207867</id><published>2005-04-19T23:25:00.000-07:00</published><updated>2005-04-19T23:25:51.273-07:00</updated><title type='text'>Use ls -h to show Kilobyte, Megabyte, Gigabyte, etc</title><content type='html'>Use the -h switch when doing an ls to get a more readable filesize value (K for kilobyte,&lt;br /&gt;&lt;br /&gt;M for megabyte, G for gigabyte), e.g.:&lt;br /&gt;&lt;br /&gt;[root@server backup]# ls -altrh&lt;br /&gt;total 9.4G&lt;br /&gt;drwxr-xr-x    2 4294967294 4294967294     4.0K Oct  6  2004 last.txt&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     4.3G Oct  6  2004 backup.tgz&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     843M Nov 23 14:31 backup_20041123.tgz&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     863M Dec  4 02:33 backup_20041204.tgz&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     5.9M Jan 17 01:55 20050117.tgz&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     928M Jan 17 02:49 backup_20050117.tgz&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     960M Feb  2 15:03 backup_20050202.tgz&lt;br /&gt;drwxr-xr-x   23 root     root         4.0K Feb 25 18:12 ..&lt;br /&gt;drwxrwxrwx    3 root     root         4.0K Apr  3 01:28 .&lt;br /&gt;-rw-r--r--    1 4294967294 4294967294     1.6G Apr  3 03:36 backup_20050403.tgz&lt;br /&gt;[root@server backup]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111397835127207867?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111397835127207867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111397835127207867' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111397835127207867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111397835127207867'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/use-ls-h-to-show-kilobyte-megabyte.html' title='Use ls -h to show Kilobyte, Megabyte, Gigabyte, etc'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377962265081997</id><published>2005-04-17T16:12:00.000-07:00</published><updated>2005-04-17T16:13:42.653-07:00</updated><title type='text'>curl Examples</title><content type='html'>curl http://curl.haxx.se&lt;br /&gt;&lt;br /&gt;GET form:&lt;br /&gt;curl "www.hotmail.com/when/junk.cgi?birthyear=1905&amp;press=OK"&lt;br /&gt;&lt;br /&gt;POST form:&lt;br /&gt;curl -d "birthyear=1905&amp;amp;press=%20OK%20" www.hotmail.com/when/junk.cgi&lt;br /&gt;&lt;br /&gt;File Upload POST:&lt;br /&gt;curl -F upload=@localfilename -F press=OK [URL]&lt;br /&gt;&lt;br /&gt;PUT:&lt;br /&gt;curl -T uploadfile www.uploadhttp.com/receive.cgi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; The site might require a different authentication method (check the headers&lt;br /&gt; returned by the server), and then --ntlm, --digest, --negotiate or even&lt;br /&gt; --anyauth might be options that suit you.&lt;br /&gt; Sometimes your HTTP access is only available through the use of a HTTP&lt;br /&gt; proxy. This seems to be especially common at various companies. A HTTP proxy&lt;br /&gt; may require its own user and password to allow the client to get through to&lt;br /&gt; the Internet. To specify those with curl, run something like:&lt;br /&gt;&lt;br /&gt;        curl -U proxyuser:proxypassword curl.haxx.se&lt;br /&gt;&lt;br /&gt; If your proxy requires the authentication to be done using the NTLM method,&lt;br /&gt; use --proxy-ntlm, if it requires Digest use --proxy-digest.&lt;br /&gt;&lt;br /&gt; If you use any one these user+password options but leave out the password&lt;br /&gt; part, curl will prompt for the password interactively.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use curl to set the referer field with:&lt;br /&gt;&lt;br /&gt;        curl -e http://curl.haxx.se daniel.haxx.se&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;User Agent:&lt;br /&gt;To make curl look like Internet Explorer on a Windows 2000 box:&lt;br /&gt;&lt;br /&gt;        curl -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" [URL]&lt;br /&gt;&lt;br /&gt; Or why not look like you're using Netscape 4.73 on a Linux (PIII) box:&lt;br /&gt;&lt;br /&gt;        curl -A "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" [URL]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Redirects:&lt;br /&gt;To tell curl to follow a Location:&lt;br /&gt;        curl -L www.sitethatredirects.com&lt;br /&gt;&lt;br /&gt; If you use curl to POST to a site that immediately redirects you to another&lt;br /&gt; page, you can safely use -L and -d/-F together. Curl will only use POST in&lt;br /&gt; the first request, and then revert to GET in the following operations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cookies:&lt;br /&gt;The simplest way to send a few cookies to the server when getting a page with&lt;br /&gt; curl is to add them on the command line like:&lt;br /&gt;&lt;br /&gt;        curl -b "name=Daniel" www.cookiesite.com&lt;br /&gt;&lt;br /&gt;Curl has a full blown cookie parsing engine built-in that comes to use if you&lt;br /&gt; want to reconnect to a server and use cookies that were stored from a&lt;br /&gt; previous connection (or handicrafted manually to fool the server into&lt;br /&gt; believing you had a previous connection). To use previously stored cookies,&lt;br /&gt; you run curl like:&lt;br /&gt;&lt;br /&gt;        curl -b stored_cookies_in_file www.cookiesite.com&lt;br /&gt;&lt;br /&gt; Curl's "cookie engine" gets enabled when you use the -b option. If you only&lt;br /&gt; want curl to understand received cookies, use -b with a file that doesn't&lt;br /&gt; exist. Example, if you want to let curl understand cookies from a page and&lt;br /&gt; follow a location (and thus possibly send back cookies it received), you can&lt;br /&gt; invoke it like:&lt;br /&gt;&lt;br /&gt;        curl -b nada -L www.cookiesite.com&lt;br /&gt;&lt;br /&gt; Curl has the ability to read and write cookie files that use the same file&lt;br /&gt; format that Netscape and Mozilla do. It is a convenient way to share cookies&lt;br /&gt; between browsers and automatic scripts. The -b switch automatically detects&lt;br /&gt; if a given file is such a cookie file and parses it, and by using the&lt;br /&gt; -c/--cookie-jar option you'll make curl write a new cookie file at the end of&lt;br /&gt; an operation:&lt;br /&gt;&lt;br /&gt;        curl -b cookies.txt -c newcookies.txt www.cookiesite.com&lt;br /&gt;&lt;br /&gt;HTTPS:&lt;br /&gt;Curl supports encrypted fetches thanks to the freely available OpenSSL&lt;br /&gt; libraries. To get a page from a HTTPS server, simply run curl like:&lt;br /&gt;&lt;br /&gt;        curl https://that.secure.server.com&lt;br /&gt;&lt;br /&gt;Certificates:&lt;br /&gt;Use a certificate with curl on a HTTPS server&lt;br /&gt;  like:&lt;br /&gt;&lt;br /&gt;        curl -E mycert.pem https://that.secure.server.com&lt;br /&gt;&lt;br /&gt;Custom Request Elements&lt;br /&gt;&lt;br /&gt; Doing fancy stuff, you may need to add or change elements of a single curl&lt;br /&gt; request.&lt;br /&gt;&lt;br /&gt; For example, you can change the POST request to a PROPFIND and send the data&lt;br /&gt; as "Content-Type: text/xml" (instead of the default Content-Type) like this:&lt;br /&gt;&lt;br /&gt;        curl -d "&lt;xml&gt;" -H "Content-Type: text/xml" -X PROPFIND url.com&lt;br /&gt;&lt;br /&gt; You can delete a default header by providing one without content. Like you&lt;br /&gt; can ruin the request by chopping off the Host: header:&lt;br /&gt;&lt;br /&gt;        curl -H "Host:" http://mysite.com&lt;br /&gt;&lt;br /&gt; You can add headers the same way. Your server may want a "Destination:"&lt;br /&gt; header, and you can add it:&lt;br /&gt;&lt;br /&gt;        curl -H "Destination: http://moo.com/nowhere" http://url.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Debug&lt;br /&gt;&lt;br /&gt; Many times when you run curl on a site, you'll notice that the site doesn't&lt;br /&gt; seem to respond the same way to your curl requests as it does to your&lt;br /&gt; browser's.&lt;br /&gt;&lt;br /&gt; Then you need to start making your curl requests more similar to your&lt;br /&gt; browser's requests:&lt;br /&gt;&lt;br /&gt; * Use the --trace-ascii option to store fully detailed logs of the requests&lt;br /&gt;   for easier analyzing and better understanding&lt;br /&gt;&lt;br /&gt; * Make sure you check for and use cookies when needed (both reading with -b&lt;br /&gt;   and writing with -c)&lt;br /&gt;&lt;br /&gt; * Set user-agent to one like a recent popular browser does&lt;br /&gt;&lt;br /&gt; * Set referer like it is set by the browser&lt;br /&gt;&lt;br /&gt; * If you use POST, make sure you send all the fields and in the same order as&lt;br /&gt;   the browser does it. (See chapter 4.5 above)&lt;br /&gt;&lt;br /&gt; A very good helper to make sure you do this right, is the LiveHTTPHeader tool&lt;br /&gt; that lets you view all headers you send and receive with Mozilla/Firefox&lt;br /&gt; (even when using HTTPS).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377962265081997?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377962265081997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377962265081997' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377962265081997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377962265081997'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/curl-examples.html' title='curl Examples'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377953623398565</id><published>2005-04-17T16:11:00.000-07:00</published><updated>2005-04-17T16:12:16.233-07:00</updated><title type='text'>Find number of occurrences of a word</title><content type='html'>To get the number of occurrences of a word (e.g. ServerName) in a file (e.g. httpd.conf), do a:&lt;br /&gt;&lt;br /&gt;grep -c ServerName httpd.conf&lt;br /&gt;&lt;br /&gt;For a line occurrence frequency count report:&lt;br /&gt;&lt;br /&gt;sort httpd.conf | uniq -c | sort -nr&lt;br /&gt;&lt;br /&gt;For a word occurrence frequency count report:&lt;br /&gt;&lt;br /&gt;sed -e 's/\.//g'  -e 's/ //g' "httpd.conf" | tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377953623398565?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377953623398565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377953623398565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377953623398565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377953623398565'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/find-number-of-occurrences-of-word.html' title='Find number of occurrences of a word'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377949276135343</id><published>2005-04-17T16:10:00.000-07:00</published><updated>2005-04-17T16:11:32.763-07:00</updated><title type='text'>ulimit example</title><content type='html'>[root@server conf]# ulimit -a&lt;br /&gt;core file size          (blocks, -c) 0&lt;br /&gt;data seg size           (kbytes, -d) unlimited&lt;br /&gt;file size               (blocks, -f) unlimited&lt;br /&gt;pending signals                 (-i) 1024&lt;br /&gt;max locked memory       (kbytes, -l) 32&lt;br /&gt;max memory size         (kbytes, -m) unlimited&lt;br /&gt;open files                      (-n) 1024&lt;br /&gt;pipe size            (512 bytes, -p) 8&lt;br /&gt;POSIX message queues     (bytes, -q) 819200&lt;br /&gt;stack size              (kbytes, -s) 10240&lt;br /&gt;cpu time               (seconds, -t) unlimited&lt;br /&gt;max user processes              (-u) 4095&lt;br /&gt;virtual memory          (kbytes, -v) unlimited&lt;br /&gt;file locks                      (-x) unlimited&lt;br /&gt;&lt;br /&gt;[root@server conf]# ulimit -a  | grep files&lt;br /&gt;open files                      (-n) 1024&lt;br /&gt;&lt;br /&gt;Change (example of increasing to 5000 files):&lt;br /&gt;&lt;br /&gt;ulimit -n 5000&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377949276135343?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377949276135343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377949276135343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377949276135343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377949276135343'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/ulimit-example.html' title='ulimit example'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377929322532721</id><published>2005-04-17T16:07:00.000-07:00</published><updated>2005-04-17T16:08:13.226-07:00</updated><title type='text'>Rename file starting with a dash(-)</title><content type='html'>If having problem renaming a file that starts with a dash:&lt;br /&gt;&lt;br /&gt;Since the file name begins with a '-' it looks like an option to the&lt;br /&gt;command.  You need to force it to not look like an option.  Put a ./&lt;br /&gt;in the front of it.  Or give it the full file name path.  Or tell the&lt;br /&gt;command you are through with options by using the double dash to end&lt;br /&gt;all option processing.  This is common to most traditional UNIX&lt;br /&gt;commands.&lt;br /&gt;&lt;br /&gt;  cp ./* /some/folder&lt;br /&gt;  cp -- * /some/folder&lt;br /&gt;&lt;br /&gt;And the same for other utilities too.&lt;br /&gt;&lt;br /&gt;  mv ./-stuff differentstuff&lt;br /&gt;  mv -- -stuff differentstuff&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377929322532721?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377929322532721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377929322532721' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377929322532721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377929322532721'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/rename-file-starting-with-dash.html' title='Rename file starting with a dash(-)'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377924267072466</id><published>2005-04-17T16:06:00.001-07:00</published><updated>2005-04-17T16:07:22.670-07:00</updated><title type='text'>Resolve "device is busy" error when doing a umount</title><content type='html'>If get "device is busy" when doing a umount, e.g.:&lt;br /&gt;&lt;br /&gt;[root@server/]# umount /home/data/&lt;br /&gt;umount: /home/data: device is busy&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To find out who's still using the share, do a, e.g.:&lt;br /&gt;&lt;br /&gt;[root@orion /]# fuser -u -v /home/data/&lt;br /&gt;&lt;br /&gt;                     USER        PID ACCESS COMMAND&lt;br /&gt;/home/data/       root      15376 ..c..  vim&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377924267072466?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377924267072466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377924267072466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377924267072466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377924267072466'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/resolve-device-is-busy-error-when.html' title='Resolve &quot;device is busy&quot; error when doing a umount'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377918553113087</id><published>2005-04-17T16:06:00.000-07:00</published><updated>2005-04-17T16:06:25.530-07:00</updated><title type='text'>Delete a range of lines in Vim example</title><content type='html'>In vim, to delete a range of lines, e.g. lines 10 through line 290, do a:&lt;br /&gt;&lt;br /&gt;:10,290d&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377918553113087?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377918553113087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377918553113087' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377918553113087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377918553113087'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/delete-range-of-lines-in-vim-example.html' title='Delete a range of lines in Vim example'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377915951965548</id><published>2005-04-17T16:05:00.000-07:00</published><updated>2005-04-17T16:05:59.520-07:00</updated><title type='text'>Have Vim remeber last cursor position</title><content type='html'>to have vim remeber the last cursor position of file edit, put in .vimrc:&lt;br /&gt;&lt;br /&gt;set viminfo='10,\"100,:20,%,n~/.viminfo&lt;br /&gt;    au BufReadPost * if line("'\"") &gt; 0|if line("'\"") &lt;= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377915951965548?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377915951965548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377915951965548' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377915951965548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377915951965548'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/have-vim-remeber-last-cursor-position.html' title='Have Vim remeber last cursor position'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377912073721928</id><published>2005-04-17T16:04:00.001-07:00</published><updated>2005-04-17T16:05:20.736-07:00</updated><title type='text'>Enabling syntax highlighting in Vim</title><content type='html'>add:&lt;br /&gt;&lt;br /&gt;syntax enable&lt;br /&gt;&lt;br /&gt;to .vimrc to enable syntax highlighting in vim (e.g. when editing php or html files)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377912073721928?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377912073721928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377912073721928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377912073721928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377912073721928'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/enabling-syntax-highlighting-in-vim.html' title='Enabling syntax highlighting in Vim'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377908290648180</id><published>2005-04-17T16:04:00.000-07:00</published><updated>2005-04-17T16:04:42.906-07:00</updated><title type='text'>Prevent others from browsing your files</title><content type='html'>In a multiuser server environment, set diretories to these settings to prevent others from browsing your files: (read/write/execute by owner, &amp; only execute by others, no read/write/execute by group)&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;        Read    Write    eXecute&lt;br /&gt;&lt;br /&gt;Owner Access    On    On    On&lt;br /&gt;Group Access    Off    Off    Off&lt;br /&gt;Other Access    Off    Off    On&lt;br /&gt;&lt;br /&gt;    chmod 711 /usr/home/USERNAME/&lt;br /&gt;    chmod 701 /usr/www/users/USERNAME/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377908290648180?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377908290648180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377908290648180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377908290648180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377908290648180'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/prevent-others-from-browsing-your.html' title='Prevent others from browsing your files'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377903395591709</id><published>2005-04-17T16:03:00.000-07:00</published><updated>2005-04-17T16:03:53.956-07:00</updated><title type='text'>Show tabs &amp; end of lines in vim</title><content type='html'>Do a:&lt;br /&gt;&lt;br /&gt;:set list&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377903395591709?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377903395591709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377903395591709' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377903395591709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377903395591709'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/show-tabs-end-of-lines-in-vim.html' title='Show tabs &amp; end of lines in vim'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377900064184995</id><published>2005-04-17T16:02:00.001-07:00</published><updated>2005-04-17T16:03:20.643-07:00</updated><title type='text'>Redhat/ Fedora linux set services automatically start</title><content type='html'>e.g. to set nfs to start automatically:&lt;br /&gt;&lt;br /&gt;[root@www2 rc3.d]# chkconfig --list nfs&lt;br /&gt;nfs             0:off   1:off   2:off   3:off   4:off   5:off   6:off&lt;br /&gt;[root@www2 rc3.d]# chkconfig nfs on&lt;br /&gt;[root@www2 rc3.d]# chkconfig --list nfs&lt;br /&gt;nfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;alternatively, e.g. for mysql:&lt;br /&gt;&lt;br /&gt;# To make the script be run on machine start up we need to create a symbolic link to it.&lt;br /&gt;&lt;br /&gt;    cd /etc/rc.d/rc3.d&lt;br /&gt;    ln -s ../init.d/mysql S85mysql&lt;br /&gt;    cd /etc/rc.d/rc5.d&lt;br /&gt;    ln -s ../init.d/mysql S85mysql&lt;br /&gt;&lt;br /&gt;# Now the links to make MySQL shut down:&lt;br /&gt;&lt;br /&gt;    cd /etc/rc.d/rc0.d&lt;br /&gt;    ln -s ../init.d/mysql K85mysql&lt;br /&gt;    cd /etc/rc.d/rc6.d&lt;br /&gt;    ln -s ../init.d/mysql K85mysql&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Runlevel Links&lt;br /&gt;&lt;br /&gt;Some services depend on other services. The 'httpd' service (Apache web server) for example won't start correctly if the 'network' script hasn't already set up the network interfaces. How is the order in which services are started on boot determined?&lt;br /&gt;&lt;br /&gt;Have a look at the '/etc/rc.d' directory:&lt;br /&gt;&lt;br /&gt;$ ls /etc/rc.d&lt;br /&gt;&lt;br /&gt;init.d/  rc0.d/  rc2.d/  rc4.d/  rc6.d/       rc.local*    rc.sysinit*&lt;br /&gt;rc*      rc1.d/  rc3.d/  rc5.d/  rc.firewall  rc.modules*&lt;br /&gt;&lt;br /&gt;You see the 'init.d' from '/etc' here again (in fact it's the same) and then several directories and files starting with 'rc' ('rc' is short for 'runcom[mand]').&lt;br /&gt;In Mandrake Linux releases 8.0 and later, these files and directories are also accessible directly from the '/etc' directory.&lt;br /&gt;&lt;br /&gt;If you now look into one of those 'rcnumber' subdirectories, you will find a bunch of files, some of them starting with 'S' and some of them with 'K' followed by a two-digit number. 'S' is short for 'start' and 'K' stands for 'kill'. The numbers imply the order in which starting and killing services takes place. In fact all those files are just links to their appropriate counterparts in '/etc/init.d'.&lt;br /&gt;'S12syslog' for example is a link to '/etc/init.d/syslog' and gets started after 'S10network' which links to '/etc/init.d/internet' but before 'S20random'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also for mysql:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;shell&gt; cp mysql.server /etc/init.d/mysql&lt;br /&gt;shell&gt; chmod +x /etc/init.d/mysql&lt;br /&gt;&lt;br /&gt;Older Red Hat systems use the `/etc/rc.d/init.d' directory rather than `/etc/init.d'. Adjust the preceding commands accordingly. Alternatively, first create `/etc/init.d' as a symbolic link that points to `/etc/rc.d/init.d':&lt;br /&gt;&lt;br /&gt;shell&gt; cd /etc&lt;br /&gt;shell&gt; ln -s rc.d/init.d .&lt;br /&gt;&lt;br /&gt;After installing the script, the commands needed to activate it to run at system startup depend on your operating system. On Linux, you can use chkconfig:&lt;br /&gt;&lt;br /&gt;shell&gt; chkconfig --add mysql&lt;br /&gt;&lt;br /&gt;On some Linux systems, the following command also seems to be necessary to fully enable the mysql script:&lt;br /&gt;&lt;br /&gt;shell&gt; chkconfig --level 345 mysql on&lt;br /&gt;&lt;br /&gt;On FreeBSD, startup scripts generally should go in `/usr/local/etc/rc.d/'. The rc(8) manual page states that scripts in this directory are executed only if their basename matches the *.sh shell filename pattern. Any other files or directories present within the directory are silently ignored. In other words, on FreeBSD, you should install the `mysql.server' script as `/usr/local/etc/rc.d/mysql.server.sh' to enable automatic startup.&lt;br /&gt;&lt;br /&gt;As an alternative to the preceding setup, some operating systems also use `/etc/rc.local' or `/etc/init.d/boot.local' to start additional services on startup. To start up MySQL using this method, you could append a command like the one following to the appropriate startup file:&lt;br /&gt;&lt;br /&gt;/bin/sh -c 'cd /usr/local/mysql; ./bin/mysqld_safe --user=mysql &amp;amp;'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377900064184995?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377900064184995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377900064184995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377900064184995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377900064184995'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/redhat-fedora-linux-set-services.html' title='Redhat/ Fedora linux set services automatically start'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377894366620626</id><published>2005-04-17T16:02:00.000-07:00</published><updated>2005-04-17T16:02:23.666-07:00</updated><title type='text'>Fix Vim backspace doesn't work</title><content type='html'>Put:&lt;br /&gt;&lt;br /&gt;:set bs=2&lt;br /&gt;&lt;br /&gt;in .vimrc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377894366620626?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377894366620626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377894366620626' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377894366620626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377894366620626'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fix-vim-backspace-doesnt-work.html' title='Fix Vim backspace doesn&apos;t work'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377890012321964</id><published>2005-04-17T16:00:00.001-07:00</published><updated>2005-04-17T16:01:40.123-07:00</updated><title type='text'>Resolve "session setup failed: ERRDOS - ERRnoaccess (Access denied.)"</title><content type='html'>In samba, if get:&lt;br /&gt;&lt;br /&gt;session setup failed: ERRDOS - ERRnoaccess (Access denied.)&lt;br /&gt;&lt;br /&gt;while trying mount -a after editing fstab, e.g.:&lt;br /&gt;&lt;br /&gt;//server/dir         /home/dir            smb     username=administrator,password=123        0 0&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;add domain, e.g.:&lt;br /&gt;&lt;br /&gt;//server/dir         /home/dir            smb     username=administrator/domain_name,password=123        0 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377890012321964?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377890012321964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377890012321964' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377890012321964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377890012321964'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/resolve-session-setup-failed-errdos.html' title='Resolve &quot;session setup failed: ERRDOS - ERRnoaccess (Access denied.)&quot;'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377881536397203</id><published>2005-04-17T16:00:00.000-07:00</published><updated>2005-04-17T16:00:15.363-07:00</updated><title type='text'>Vim bookmark position and returning to bookmark</title><content type='html'>ml Mark the current position with the bookmark named l&lt;br /&gt;'l Move to the beginning of the line where mark l is.&lt;br /&gt;`l Move to the character where the named mark l is.&lt;br /&gt;`` Return to exact position of the previous mark&lt;br /&gt;'' Return to the beginning of the line where the previous mark was.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377881536397203?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377881536397203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377881536397203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377881536397203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377881536397203'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/vim-bookmark-position-and-returning-to.html' title='Vim bookmark position and returning to bookmark'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377878692807992</id><published>2005-04-17T15:59:00.000-07:00</published><updated>2005-04-17T15:59:46.930-07:00</updated><title type='text'>Using nohup</title><content type='html'>nohup command &amp;amp;&lt;br /&gt;&lt;br /&gt;Continue to execute command (which can include arguments) in the background after you logout. Technically, nohup starts command with the SIGHUP signal set to be ignored.&lt;br /&gt;If standard output is the terminal then standard output is redirected to the file nohup.out. Output is appended to nohup.out if the file already exists. If standard error is the terminal then standard error is redirected to the same file as standard output.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377878692807992?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377878692807992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377878692807992' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377878692807992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377878692807992'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/using-nohup.html' title='Using nohup'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377874893724947</id><published>2005-04-17T15:58:00.000-07:00</published><updated>2005-04-17T15:59:08.936-07:00</updated><title type='text'>Creating a Disk Array in Fedora</title><content type='html'>Create (mdadm --create) mode is used to create a new array. In this example I use mdadm to create a RAID-0 at /dev/md0 made up of /dev/sdb1 and /dev/sdc1:&lt;br /&gt;&lt;br /&gt;# mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1&lt;br /&gt;&lt;br /&gt;mdadm: chunk size defaults to 64K&lt;br /&gt;&lt;br /&gt;mdadm: array /dev/md0 started.&lt;br /&gt;The --level option specifies which type of RAID to create in the same way that raidtools uses the raid-level configuration line. Valid choices are 0,1,4 and 5 for RAID-0, RAID-1, RAID-4, RAID-5 respectively. Linear (--level=linear) is also a valid choice for linear mode. The --raid-devices option works the same as the nr-raid-disks option when using /etc/raidtab and raidtools.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Use the --stop or -S command to stop running array:&lt;br /&gt;&lt;br /&gt;# mdadm -S /dev/md0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/hdc1 /dev/hdd1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@localhost home]# mdadm --query /dev/md0&lt;br /&gt;/dev/md0: 223.58GiB raid0 2 devices, 0 spares. Use mdadm --detail for more detail.&lt;br /&gt;/dev/md0: No md super block found, not an md component.&lt;br /&gt;[root@localhost home]# mdadm --detail /dev/md0&lt;br /&gt;/dev/md0:&lt;br /&gt;        Version : 00.90.01&lt;br /&gt;  Creation Time : Thu Aug 19 14:49:32 2004&lt;br /&gt;     Raid Level : raid0&lt;br /&gt;     Array Size : 234436352 (223.58 GiB 240.06 GB)&lt;br /&gt;   Raid Devices : 2&lt;br /&gt;  Total Devices : 2&lt;br /&gt;Preferred Minor : 0&lt;br /&gt;    Persistence : Superblock is persistent&lt;br /&gt;&lt;br /&gt;    Update Time : Thu Aug 19 14:49:32 2004&lt;br /&gt;          State : clean, no-errors&lt;br /&gt; Active Devices : 2&lt;br /&gt;Working Devices : 2&lt;br /&gt; Failed Devices : 0&lt;br /&gt;  Spare Devices : 0&lt;br /&gt;&lt;br /&gt;     Chunk Size : 64K&lt;br /&gt;&lt;br /&gt;    Number   Major   Minor   RaidDevice State&lt;br /&gt;       0      22        1        0      active sync   /dev/hdc1&lt;br /&gt;       1      22       65        1      active sync   /dev/hdd1&lt;br /&gt;           UUID : 2f4c1a82:92bc9ece:372b0de6:c4cc65d6&lt;br /&gt;         Events : 0.2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377874893724947?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377874893724947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377874893724947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377874893724947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377874893724947'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/creating-disk-array-in-fedora.html' title='Creating a Disk Array in Fedora'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377869399901224</id><published>2005-04-17T15:57:00.000-07:00</published><updated>2005-04-17T15:58:14.000-07:00</updated><title type='text'>Emacs sample commands (useful for default BASH shell and mysql console)</title><content type='html'>alt-f            move forwards one word.&lt;br /&gt;alt-b            move backwards one word.&lt;br /&gt;ctrl-e            go to end of line.&lt;br /&gt;ctrl-a            go to beginning of line.&lt;br /&gt;&lt;br /&gt;ctrl-k            delete to end of line or delete blank line.&lt;br /&gt;ctrl-_            undo last change&lt;br /&gt;&lt;br /&gt;ESC-d            delete word to the right&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Readline vi Mode&lt;br /&gt;While the Readline library does not have a full set of vi editing functions, it does contain enough to allow simple editing of the line. The Readline vi mode behaves as specified in the POSIX 1003.2 standard.&lt;br /&gt;&lt;br /&gt;In order to switch interactively between emacs and vi editing modes, use the `set -o emacs' and `set -o vi' commands (see section 4.3 The Set Builtin). The Readline default is emacs mode.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377869399901224?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377869399901224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377869399901224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377869399901224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377869399901224'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/emacs-sample-commands-useful-for.html' title='Emacs sample commands (useful for default BASH shell and mysql console)'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377864009677332</id><published>2005-04-17T15:56:00.000-07:00</published><updated>2005-04-17T15:57:20.096-07:00</updated><title type='text'>Linux Hard drive benchmarking</title><content type='html'>Linux Hard drive benchmarking (on Dell 2400 2.2 GHz 7200 RPM 40 gig HDD)&lt;br /&gt;&lt;br /&gt;[root@server shop]# hdparm -Tt /dev/hda&lt;br /&gt;&lt;br /&gt;/dev/hda:&lt;br /&gt; Timing buffer-cache reads:   1328 MB in  2.00 seconds = 664.00 MB/sec&lt;br /&gt; Timing buffered disk reads:  124 MB in  3.00 seconds =  41.33 MB/sec&lt;br /&gt;&lt;br /&gt;[root@server home]# hdparm /dev/hda&lt;br /&gt;&lt;br /&gt;/dev/hda:&lt;br /&gt; multcount    = 16 (on)&lt;br /&gt; IO_support   =  0 (default 16-bit)&lt;br /&gt; unmaskirq    =  0 (off)&lt;br /&gt; using_dma    =  1 (on)&lt;br /&gt; keepsettings =  0 (off)&lt;br /&gt; readonly     =  0 (off)&lt;br /&gt; readahead    =  8 (on)&lt;br /&gt; geometry     = 4863/255/63, sectors = 78125000, start = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@server home]# hdparm -u1 -m16 -c3 -d1 -X69 /dev/hda&lt;br /&gt;&lt;br /&gt;/dev/hda:&lt;br /&gt; setting 32-bit IO_support flag to 3&lt;br /&gt; setting multcount to 16&lt;br /&gt; setting unmaskirq to 1 (on)&lt;br /&gt; setting using_dma to 1 (on)&lt;br /&gt; setting xfermode to 69 (UltraDMA mode5)&lt;br /&gt; multcount    = 16 (on)&lt;br /&gt; IO_support   =  3 (32-bit w/sync)&lt;br /&gt; unmaskirq    =  1 (on)&lt;br /&gt; using_dma    =  1 (on)&lt;br /&gt;[root@server home]# hdparm /dev/hda&lt;br /&gt;&lt;br /&gt;/dev/hda:&lt;br /&gt; multcount    = 16 (on)&lt;br /&gt; IO_support   =  3 (32-bit w/sync)&lt;br /&gt; unmaskirq    =  1 (on)&lt;br /&gt; using_dma    =  1 (on)&lt;br /&gt; keepsettings =  0 (off)&lt;br /&gt; readonly     =  0 (off)&lt;br /&gt; readahead    =  8 (on)&lt;br /&gt; geometry     = 4863/255/63, sectors = 78125000, start = 0&lt;br /&gt;[root@server home]# hdparm -Tt /dev/hda&lt;br /&gt;/dev/hda:&lt;br /&gt; Timing buffer-cache reads:   1340 MB in  2.00 seconds = 670.00 MB/sec&lt;br /&gt; Timing buffered disk reads:  142 MB in  3.03 seconds =  46.86 MB/sec&lt;br /&gt;&lt;br /&gt;put command in /etc/rc.d/rc.local&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377864009677332?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377864009677332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377864009677332' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377864009677332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377864009677332'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/linux-hard-drive-benchmarking.html' title='Linux Hard drive benchmarking'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377856545070100</id><published>2005-04-17T15:55:00.001-07:00</published><updated>2005-04-17T15:56:05.453-07:00</updated><title type='text'>How much swap space do you have?</title><content type='html'>The free command reports information on system-memory usage:&lt;br /&gt;&lt;br /&gt;rutabaga% free&lt;br /&gt;            total       used       free     shared    buffers     cached&lt;br /&gt;Mem:        127888     126744       1144      27640       1884      51988&lt;br /&gt;-/+ buffers:            72872      55016&lt;br /&gt;Swap:       130748      23916     106832&lt;br /&gt;All the numbers here are reported in 1024-byte blocks. Here, we see a system with 127,888 blocks (about 127 MB) of physical RAM, with 126,744 (about 126 MB) currently in use. Note that your system actually has more physical RAM than that given in the "total" column; this number does not include the memory used by the kernel for its own sundry needs.&lt;br /&gt;&lt;br /&gt;The "shared" column lists the amount of physical memory shared between multiple processes. Here, we see that about 27 MB of pages are being shared, which means that memory is being utilized well. The "buffers" column shows the amount of memory being used by the kernel buffer cache. The buffer cache (described briefly in the previous section) is used to speed up disk operations, by allowing disk reads and writes to be serviced directly from memory. The buffer cache size will increase or decrease as memory usage on the system changes; this memory is reclaimed if it is needed by applications. Therefore, although we see that 126 MB of system memory is in use, not all (but most) of it is being used by application programs. The "cache" column indicates how many memory pages the kernel has cached for faster access later.&lt;br /&gt;&lt;br /&gt;Since the memory used for buffers and cache can easily be reclaimed for use by applications, the second line (-/+ buffers/cache) provides an indication of the memory actually used by applications (the "used" column) or available to applications (the "free" column). The sum of the memory used by buffers and cache reported in the first line is subtracted from the total used memory and added to the total free memory to give the two figures on the second line.&lt;br /&gt;&lt;br /&gt;In the third line, we see the total amount of swap, 130,748 blocks (about 128 MB). In this case, only very little of the swap is being used; there is plenty of physical RAM available. If additional applications were started, larger parts of the buffer cache memory would be used to host them. Swap space is generally used as a last resort when the system can't reclaim physical memory in other ways.&lt;br /&gt;&lt;br /&gt;Note that the amount of swap reported by free is somewhat less than the total size of your swap partitions and files. This is because several blocks of each swap area must be used to store a map of how each page in the swap area is being utilized. This overhead should be rather small; only a few kilobytes per swap area.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377856545070100?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377856545070100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377856545070100' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377856545070100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377856545070100'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/how-much-swap-space-do-you-have.html' title='How much swap space do you have?'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377853412755886</id><published>2005-04-17T15:55:00.000-07:00</published><updated>2005-04-17T15:55:34.126-07:00</updated><title type='text'>Redirect standard error to standard out example:</title><content type='html'>wget --timeout=2 --tries=1 -O /tmp/test.html http://test.com/ 2&gt;&amp;amp;1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377853412755886?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377853412755886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377853412755886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377853412755886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377853412755886'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/redirect-standard-error-to-standard.html' title='Redirect standard error to standard out example:'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377848430905431</id><published>2005-04-17T15:54:00.000-07:00</published><updated>2005-04-17T15:54:44.310-07:00</updated><title type='text'>The watch command</title><content type='html'>watch - execute a program periodically, showing output fullscreen&lt;br /&gt;&lt;br /&gt;SYNOPSIS&lt;br /&gt;       watch   [-dhv]  [-n  &lt;seconds&gt;]  [--differences[=cumulative]]  [--help]&lt;br /&gt;       [--interval=&lt;seconds&gt;] [--version] &lt;command&gt;&lt;br /&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;       watch runs command repeatedly, displaying its output (the first screen-&lt;br /&gt;       full).   This  allows you to watch the program output change over time.&lt;br /&gt;       By default, the program is run every 2 seconds; use -n or --interval to&lt;br /&gt;       specify a different interval.&lt;br /&gt;&lt;br /&gt;       The  -d  or  --differences  flag will highlight the differences between&lt;br /&gt;       successive  updates.   The  --cumulative  option   makes   highlighting&lt;br /&gt;       "sticky",  presenting a running display of all positions that have ever&lt;br /&gt;       changed.&lt;br /&gt;&lt;br /&gt;       watch will run until interrupted.&lt;br /&gt;&lt;br /&gt;EXAMPLES&lt;br /&gt;       To watch for mail, you might do&lt;br /&gt;&lt;br /&gt;              watch -n 60 from&lt;br /&gt;&lt;br /&gt;       To watch the contents of a directory change, you could use&lt;br /&gt;&lt;br /&gt;              watch -d ls -l&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377848430905431?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377848430905431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377848430905431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377848430905431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377848430905431'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/watch-command.html' title='The watch command'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377842301360343</id><published>2005-04-17T15:52:00.000-07:00</published><updated>2005-04-17T15:53:43.013-07:00</updated><title type='text'>Set up Linux to sync its time with a time server</title><content type='html'>ntpdate server&lt;br /&gt;&lt;br /&gt;should do the trick from the command line or cron job.&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&lt;br /&gt;[root@server root]# ntpdate time.nist.gov&lt;br /&gt;17 Apr 15:53:26 ntpdate[29455]: step time server 192.43.244.18 offset -0.715067 sec&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377842301360343?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377842301360343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377842301360343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377842301360343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377842301360343'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/set-up-linux-to-sync-its-time-with.html' title='Set up Linux to sync its time with a time server'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377833818853055</id><published>2005-04-17T15:51:00.001-07:00</published><updated>2005-04-17T15:52:18.190-07:00</updated><title type='text'>Unzip all zip files in a directory</title><content type='html'>unzip *.zip won't work- use:&lt;br /&gt;&lt;br /&gt;unzip \*.zip&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377833818853055?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377833818853055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377833818853055' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377833818853055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377833818853055'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/unzip-all-zip-files-in-directory.html' title='Unzip all zip files in a directory'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377830033738629</id><published>2005-04-17T15:51:00.000-07:00</published><updated>2005-04-17T15:51:40.336-07:00</updated><title type='text'>Sort directories by size</title><content type='html'>du | sort -nr | less&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377830033738629?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377830033738629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377830033738629' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377830033738629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377830033738629'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/sort-directories-by-size.html' title='Sort directories by size'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377826821535883</id><published>2005-04-17T15:50:00.000-07:00</published><updated>2005-04-17T15:51:08.216-07:00</updated><title type='text'>Use the screen utility</title><content type='html'>Using the screen utility&lt;br /&gt;&lt;br /&gt;If you quit one of the processes under screen's control (for instance, by typing q to top or typing exit at a shell prompt), that window will close. When its last window closes, screen, and its backend process, SCREEN, terminate.&lt;br /&gt;&lt;br /&gt;If some screen windows are open, though, you can also leave screen temporarily. Here are two ways:&lt;br /&gt;&lt;br /&gt;You can suspend screen by typing C-a z or C-a C-z from any window. You can restart it (before you log out!) by typing the shell's fg command. This uses Linux job control.&lt;br /&gt;&lt;br /&gt;You can detach screen from your current terminal. The SCREEN backend process and the ptys it manages keep running. You can log out and log in again later -- even days or weeks later (as long as the system isn't rebooted) -- and reattach the SCREEN backend process to your new terminal. To detach screen from your terminal, type C-a d. You should see the message [detached]. Now you'll be back at a prompt from the shell where you first started (or attached) screen.&lt;br /&gt;&lt;br /&gt;For example, if you're monitoring a long-running industrial process from a tty on your office workstation, and you're afraid that it won't finish before you have to go home, start that processes under screen control. When you leave, use C-a d to detach. Now you can turn off your display (but not your CPU!), go home, connect to your workstation by (for instance) ssh, and reattach. It's that easy!&lt;br /&gt;&lt;br /&gt;To reattach, type the command screen ­r at a shell prompt. Your window should appear just as it was when you left it -- unless its contents have changed in the meantime, of course. You can see previous lines of the display by using screen's scrollback history.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377826821535883?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377826821535883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377826821535883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377826821535883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377826821535883'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/use-screen-utility.html' title='Use the screen utility'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377822803636366</id><published>2005-04-17T15:49:00.000-07:00</published><updated>2005-04-17T15:50:28.036-07:00</updated><title type='text'>Do replace confirmation in Vim search &amp; replace</title><content type='html'>In vim search and replace, do a&lt;br /&gt;&lt;br /&gt;/gc&lt;br /&gt;&lt;br /&gt;to have it confirm replace.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377822803636366?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377822803636366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377822803636366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377822803636366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377822803636366'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/do-replace-confirmation-in-vim-search.html' title='Do replace confirmation in Vim search &amp; replace'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377767566778291</id><published>2005-04-17T15:41:00.000-07:00</published><updated>2005-04-17T15:41:15.666-07:00</updated><title type='text'>Enable mouse positioning in Vim in text mode</title><content type='html'>put&lt;br /&gt;&lt;br /&gt;:set mouse=a&lt;br /&gt;&lt;br /&gt;in .vimrc&lt;br /&gt;&lt;br /&gt;to enable mouse positioning in vim in text mode&lt;br /&gt;&lt;br /&gt;hold down SHIFT to enable terminal copy-n-paste (e.g. putty)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377767566778291?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377767566778291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377767566778291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377767566778291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377767566778291'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/enable-mouse-positioning-in-vim-in.html' title='Enable mouse positioning in Vim in text mode'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377764409751243</id><published>2005-04-17T15:40:00.000-07:00</published><updated>2005-04-17T15:40:44.096-07:00</updated><title type='text'>Fix Vim syntax highlighting not working problem</title><content type='html'>put the following in your .vimrc (_vimrc on windows):&lt;br /&gt;&lt;br /&gt;autocmd BufEnter * :syntax sync fromstart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377764409751243?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377764409751243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377764409751243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377764409751243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377764409751243'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fix-vim-syntax-highlighting-not.html' title='Fix Vim syntax highlighting not working problem'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377760419185440</id><published>2005-04-17T15:38:00.000-07:00</published><updated>2005-04-17T15:40:04.193-07:00</updated><title type='text'>Configure X manually</title><content type='html'>You can try to configure X manually with:&lt;br /&gt;&lt;br /&gt;/usr/share/redhat-config-xfree86/redhat-config-xfree86&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377760419185440?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377760419185440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377760419185440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377760419185440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377760419185440'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/configure-x-manually.html' title='Configure X manually'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377741991922900</id><published>2005-04-17T15:36:00.000-07:00</published><updated>2005-04-17T15:36:59.920-07:00</updated><title type='text'>Linux Installing &amp; Setting up New Hard Drive (EXT3)</title><content type='html'>[root]# fdisk /dev/hdb&lt;br /&gt;Command (m for help): m     (Enter the letter "m" to get list of commands)&lt;br /&gt;Command action&lt;br /&gt;   a   toggle a bootable flag&lt;br /&gt;   b   edit bsd disklabel&lt;br /&gt;   c   toggle the dos compatibility flag&lt;br /&gt;   d   delete a partition&lt;br /&gt;   l   list known partition types&lt;br /&gt;   m   print this menu&lt;br /&gt;   n   add a new partition&lt;br /&gt;   o   create a new empty DOS partition table&lt;br /&gt;   p   print the partition table&lt;br /&gt;   q   quit without saving changes&lt;br /&gt;   s   create a new empty Sun disklabel&lt;br /&gt;   t   change a partition's system id&lt;br /&gt;   u   change display/entry units&lt;br /&gt;   v   verify the partition table&lt;br /&gt;   w   write table to disk and exit&lt;br /&gt;   x   extra functionality (experts only)&lt;br /&gt;&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;   e   extended&lt;br /&gt;   p   primary partition (1-4)&lt;br /&gt;e&lt;br /&gt;Partition number (1-4): 1&lt;br /&gt;First cylinder (1-2654, default 1):&lt;br /&gt;Using default value 1&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (1-2654, default 2654):&lt;br /&gt;Using default value 2654&lt;br /&gt;&lt;br /&gt;Command (m for help): p&lt;br /&gt;&lt;br /&gt;Disk /dev/hdb: 240 heads, 63 sectors, 2654 cylinders&lt;br /&gt;Units = cylinders of 15120 * 512 bytes&lt;br /&gt;&lt;br /&gt;   Device Boot    Start       End    Blocks   Id  System&lt;br /&gt;/dev/hdb1             1      2654  20064208+   5  Extended&lt;br /&gt;&lt;br /&gt;Command (m for help): w    (Write and save partition table)&lt;br /&gt;&lt;br /&gt;[root]# mkfs -t ext3 /dev/hdb1&lt;br /&gt;mke2fs 1.27 (8-Mar-2002)&lt;br /&gt;Filesystem label=&lt;br /&gt;OS type: Linux&lt;br /&gt;Block size=4096 (log=2)&lt;br /&gt;Fragment size=4096 (log=2)&lt;br /&gt;2508352 inodes, 5016052 blocks&lt;br /&gt;250802 blocks (5.00%) reserved for the super user&lt;br /&gt;First data block=0&lt;br /&gt;154 block groups&lt;br /&gt;32768 blocks per group, 32768 fragments per group&lt;br /&gt;16288 inodes per group&lt;br /&gt;Superblock backups stored on blocks:&lt;br /&gt;        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,&lt;br /&gt;        4096000&lt;br /&gt;&lt;br /&gt;Writing inode tables: done&lt;br /&gt;Creating journal (8192 blocks): done&lt;br /&gt;Writing superblocks and filesystem accounting information: done&lt;br /&gt;&lt;br /&gt;This filesystem will be automatically checked every 34 mounts or&lt;br /&gt;180 days, whichever comes first.  Use tune2fs -c or -i to override.&lt;br /&gt;[root]# mkdir /opt2&lt;br /&gt;[root]# mount -t ext3 /dev/hdb1 /opt2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enter the drive into the fstab file so that it is recognized and mounted upon system boot.&lt;br /&gt;&lt;br /&gt;File: /etc/fstab Red Hat 8.0&lt;br /&gt;&lt;br /&gt;LABEL=/                 /                       ext3    defaults        1 1&lt;br /&gt;LABEL=/boot             /boot                   ext3    defaults        1 2&lt;br /&gt;none                    /dev/pts                devpts  gid=5,mode=620  0 0&lt;br /&gt;none                    /proc                   proc    defaults        0 0&lt;br /&gt;none                    /dev/shm                tmpfs   defaults        0 0&lt;br /&gt;/dev/hda2               swap                    swap    defaults        0 0&lt;br /&gt;/dev/hdb1            /opt2                ext3   defaults      1 2&lt;br /&gt;/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0&lt;br /&gt;/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377741991922900?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377741991922900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377741991922900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377741991922900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377741991922900'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/linux-installing-setting-up-new-hard.html' title='Linux Installing &amp; Setting up New Hard Drive (EXT3)'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377734191985048</id><published>2005-04-17T15:35:00.000-07:00</published><updated>2005-04-17T15:35:41.920-07:00</updated><title type='text'>Help against DDOS attacks</title><content type='html'>echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies&lt;br /&gt;echo 4096 &gt; /proc/sys/net/ipv4/tcp_max_syn_backlog&lt;br /&gt;echo 1 &gt; /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses&lt;br /&gt;echo 1 &gt; /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts&lt;br /&gt;echo 1024 65535 &gt; /proc/sys/net/ipv4/ip_local_port_range&lt;br /&gt;echo 0 &gt; /proc/sys/net/ipv4/tcp_sack&lt;br /&gt;&lt;br /&gt;# stops anyone doing an OS finger print scan on the IP stack, 64 will show as linux, 61 will screw them up &lt;br /&gt;echo 61 &gt; /proc/sys/net/ipv4/ip_default_ttl&lt;br /&gt;&lt;br /&gt;for device in `ls /proc/sys/net/ipv4/conf`&lt;br /&gt;do&lt;br /&gt;    echo "2" &gt; /proc/sys/net/ipv4/conf/$device/rp_filter&lt;br /&gt;    echo "0" &gt; /proc/sys/net/ipv4/conf/$device/accept_redirects&lt;br /&gt;    echo "0" &gt; /proc/sys/net/ipv4/conf/$device/send_redirects&lt;br /&gt;    echo "1" &gt; /proc/sys/net/ipv4/conf/$device/secure_redirects&lt;br /&gt;    echo "0" &gt; /proc/sys/net/ipv4/conf/$device/accept_source_route&lt;br /&gt;    echo "1" &gt; /proc/sys/net/ipv4/conf/$device/log_martians&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;more ideas:&lt;br /&gt;&lt;br /&gt;#Reduce DoS'ing ability by reducing timeouts&lt;br /&gt;echo 30 &gt; /proc/sys/net/ipv4/tcp_fin_timeout&lt;br /&gt;echo 1800 &gt; /proc/sys/net/ipv4/tcp_keepalive_time&lt;br /&gt;echo 1 &gt; /proc/sys/net/ipv4/tcp_window_scaling&lt;br /&gt;echo 0 &gt; /proc/sys/net/ipv4/tcp_sack&lt;br /&gt;echo 1280 &gt; /proc/sys/net/ipv4/tcp_max_syn_backlog&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377734191985048?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377734191985048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377734191985048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377734191985048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377734191985048'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/help-against-ddos-attacks.html' title='Help against DDOS attacks'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377725209499663</id><published>2005-04-17T15:33:00.000-07:00</published><updated>2005-04-17T15:34:12.096-07:00</updated><title type='text'>Resolving relaying denied message from sendmail in same domain</title><content type='html'>If getting relaying denied message from sendmail when trying to connect within same domain, add:&lt;br /&gt;&lt;br /&gt;FEATURE(relay_entire_domain)&lt;br /&gt;&lt;br /&gt;to:&lt;br /&gt;&lt;br /&gt; /etc/mail/sendmail.mc&lt;br /&gt;&lt;br /&gt;then:&lt;br /&gt;&lt;br /&gt;make -C /etc/mail&lt;br /&gt;&lt;br /&gt;then:&lt;br /&gt;&lt;br /&gt;restart sendmail&lt;br /&gt;&lt;br /&gt;for more info refer to:&lt;br /&gt;&lt;br /&gt;http://www.sendmail.org/tips/relaying.html&lt;br /&gt;&lt;br /&gt;[excerpt]&lt;br /&gt;&lt;br /&gt;For more precise tuning, several FEATUREs have been added to control relaying:&lt;br /&gt;&lt;br /&gt;FEATURE(relay_hosts_only). Normally domains are listed in /etc/mail/relay-domains; any hosts in those domains match. With this feature, each host in a domain must be listed.&lt;br /&gt;FEATURE(relay_entire_domain). Setting this feature allows relaying of all hosts within your domain. For example, on the host gateway.A.COM, this feature allows mail to or from any host in the A.COM domain. More precisely, this relays any host listed in the $=m class. This is equivalent to listing the name of the domain in /etc/mail/relay-domains.&lt;br /&gt;FEATURE(access_db). This enables the hash database /etc/mail/access to enable or disable access from individual domains (or hosts, if FEATURE(relay_hosts_only) is set). The database format is described below.&lt;br /&gt;FEATURE(blacklist_recipients). If set, this feature looks up recipients as well as senders in the access database.&lt;br /&gt;FEATURE(rbl). NOTE: Thie feature is obsolete. Use FEATURE(dnsbl) in newer versions of sendmail. Enables rejection of mail based on the Realtime Blackhole List maintained at mail-abuse.org.&lt;br /&gt;FEATURE(dnsbl). Enables rejection of mail based on the Realtime Blackhole List maintained at mail-abuse.org.&lt;br /&gt;FEATURE(accept_unqualified_senders). Normally, sendmail will not accept mail from a sender without a domain attached -- for example, user instead of user@B.NET. This feature allows such users.&lt;br /&gt;FEATURE(accept_unresolvable_domains). Normally, sendmail will refuse to accept mail that has a return address with a domain that cannot be resolved using the regular host lookups (a technique commonly used by spammers). This feature permits acceptance of such addresses. Unresolvable domains can be selectively accepted using the access database.&lt;br /&gt;FEATURE(relay_based_on_MX). Setting this feature permits relaying for any domain that is directed to your host.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377725209499663?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377725209499663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377725209499663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377725209499663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377725209499663'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/resolving-relaying-denied-message-from.html' title='Resolving relaying denied message from sendmail in same domain'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377715906467380</id><published>2005-04-17T15:31:00.000-07:00</published><updated>2005-04-17T15:32:39.066-07:00</updated><title type='text'>Allow only certain hosts to ssh into your Linux box</title><content type='html'>sample /etc/hosts.allow file:&lt;br /&gt;&lt;br /&gt;# hosts.allow   This file describes the names of the hosts which are&lt;br /&gt;#       allowed to use the local INET services, as decided&lt;br /&gt;#       by the '/usr/sbin/tcpd' server.&lt;br /&gt;#&lt;br /&gt;sshd: 192.168.100. ALLOW&lt;br /&gt;sshd: 192.168.10. ALLOW&lt;br /&gt;sshd: ALL: DENY&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377715906467380?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377715906467380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377715906467380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377715906467380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377715906467380'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/allow-only-certain-hosts-to-ssh-into.html' title='Allow only certain hosts to ssh into your Linux box'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377709459714649</id><published>2005-04-17T15:30:00.001-07:00</published><updated>2005-04-17T15:31:34.600-07:00</updated><title type='text'>GPG tutorial</title><content type='html'>from &lt;a href="http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto-1.html"&gt;http://webber.dewinter.com/gnupg_howto/english/GPGMiniHowto-1.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;***Now the ***sender*** will crypt the message with the ***public key belonging to the receiver***.&lt;br /&gt;Then decryption will be done with the secret key of the receiver.***&lt;br /&gt;&lt;br /&gt;Classic methods for encryption only use one key for encryption. The sender encrypts the message&lt;br /&gt;with this key. To be able to decrypt this the receiver needs to have this very same key. This key&lt;br /&gt;must have been given to the receiver in a way, that others won't have had the opportunity to obtain&lt;br /&gt;this key. If somebody else does have the key, this method of encryption is useless.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The use of so-called Public Keys can solve this problem. Public Keys is a concept where two keys&lt;br /&gt;are involved. One key is a Public Key that can be spread through all sorts of media and may be&lt;br /&gt;obtained by anyone. The other key is the Private Key. This key is secret and cannot be spread. This&lt;br /&gt;key is only available to the owner. When the system is well implemented the secret key cannot be&lt;br /&gt;derived from the public key. Now the sender will crypt the message with the public key belonging to&lt;br /&gt;the receiver. Then decryption will be done with the secret key of the receiver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Crucial in this concept is that the secret key remains a secret and should not be given away or&lt;br /&gt;become available to anyone else but the owner of this key. YOU CANNOT SEND THIS KEY OVER THE&lt;br /&gt;INTERNET. Also it is very unwise to use GnuPG over telnet (you might consider never to use telnet&lt;br /&gt;based on the high security risks).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Creating a key With&lt;br /&gt;&lt;br /&gt;gpg --gen-key&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The command for exporting a key for a user is:&lt;br /&gt;&lt;br /&gt;gpg --export [UID]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you received someone's public key (or several public keys) you have to add them to your key database in order to be able to use them. To import into the database the command looks like this:&lt;br /&gt;&lt;br /&gt;gpg --import [Filename]&lt;br /&gt;&lt;br /&gt;e.g.:&lt;br /&gt;&lt;br /&gt;C:\gnupg&gt;&lt;br /&gt;C:\gnupg&gt;gpg --import maritz.asc&lt;br /&gt;gpg: key A643961E: public key "Maritz Data Security &lt;secadminmgts@maritz.com&gt;" i&lt;br /&gt;mported&lt;br /&gt;gpg: Total number processed: 1&lt;br /&gt;gpg:               imported: 1&lt;br /&gt;&lt;br /&gt;C:\gnupg&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Encrypt and decrypt&lt;br /&gt;After installing everything and configuring everything in the way we want, we can start on encrypting and decrypting.&lt;br /&gt;&lt;br /&gt;When encrypting or decrypting it is possible to have more than one private key in use. If this occurs you need to select the active key. This can be done by using the option -u UID or by using the option --local-user UID. This causes the default key to use to be replaced by wanted key.&lt;br /&gt;&lt;br /&gt;If you want to change recipient this can be done by the option -r or by the option --recipient.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4.1 Encrypt&lt;br /&gt;&lt;br /&gt;The command to encrypt is&lt;br /&gt;&lt;br /&gt;gpg -e Recipient [Data]&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;gpg --encrypt Recipient [Data]&lt;br /&gt;&lt;br /&gt;To avoid the risk that somebody else claims to be you, it is very useful to sign everything you encrypt, see signatures.&lt;br /&gt;&lt;br /&gt;4.2 Decrypt&lt;br /&gt;The command for decrypting is:&lt;br /&gt;&lt;br /&gt;gpg [-d] [Data]&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;gpg [--decrypt] [Data]&lt;br /&gt;&lt;br /&gt;Also here stdout is preset, but with the -o option you can redirect the output to a file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377709459714649?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377709459714649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377709459714649' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377709459714649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377709459714649'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/gpg-tutorial.html' title='GPG tutorial'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377704110050307</id><published>2005-04-17T15:30:00.000-07:00</published><updated>2005-04-17T15:30:41.103-07:00</updated><title type='text'>Check mx records of a domain</title><content type='html'>dig domain mx&lt;br /&gt;&lt;br /&gt;e.g.:&lt;br /&gt;&lt;br /&gt;[root@server /home]# dig socal.rr.com mx&lt;br /&gt;&lt;br /&gt;; &lt;&lt;&gt;&gt; DiG 9.1.0 &lt;&lt;&gt;&gt; socal.rr.com mx&lt;br /&gt;;; global options:  printcmd&lt;br /&gt;;; Got answer:&lt;br /&gt;;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 21901&lt;br /&gt;;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 6&lt;br /&gt;&lt;br /&gt;;; QUESTION SECTION:&lt;br /&gt;;socal.rr.com.                  IN      MX&lt;br /&gt;&lt;br /&gt;;; ANSWER SECTION:&lt;br /&gt;socal.rr.com.           3600    IN      MX      20 kcmx02.mgw.rr.com.&lt;br /&gt;socal.rr.com.           3600    IN      MX      30 orange.mgw.rr.com.&lt;br /&gt;socal.rr.com.           3600    IN      MX      10 lamx01.mgw.rr.com.&lt;br /&gt;socal.rr.com.           3600    IN      MX      10 lamx02.mgw.rr.com.&lt;br /&gt;socal.rr.com.           3600    IN      MX      10 lamx03.mgw.rr.com.&lt;br /&gt;socal.rr.com.           3600    IN      MX      20 kcmx01.mgw.rr.com.&lt;br /&gt;&lt;br /&gt;;; AUTHORITY SECTION:&lt;br /&gt;socal.rr.com.           3600    IN      NS      dns-sec-01.socal.rr.com.&lt;br /&gt;socal.rr.com.           3600    IN      NS      dns-pri-01.socal.rr.com.&lt;br /&gt;&lt;br /&gt;;; ADDITIONAL SECTION:&lt;br /&gt;lamx01.mgw.rr.com.      75198   IN      A       66.75.160.12&lt;br /&gt;lamx02.mgw.rr.com.      75198   IN      A       66.75.160.13&lt;br /&gt;lamx03.mgw.rr.com.      75198   IN      A       66.75.160.11&lt;br /&gt;kcmx01.mgw.rr.com.      75197   IN      A       24.94.163.190&lt;br /&gt;kcmx02.mgw.rr.com.      75198   IN      A       24.94.165.190&lt;br /&gt;dns-pri-01.socal.rr.com. 2514   IN      A       66.75.160.39&lt;br /&gt;&lt;br /&gt;;; Query time: 97 msec&lt;br /&gt;;; SERVER: 192.168.100.26#53(192.168.100.26)&lt;br /&gt;;; WHEN: Fri Oct 10 15:27:15 2003&lt;br /&gt;;; MSG SIZE  rcvd: 318&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377704110050307?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377704110050307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377704110050307' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377704110050307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377704110050307'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/check-mx-records-of-domain.html' title='Check mx records of a domain'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377699129897972</id><published>2005-04-17T15:29:00.000-07:00</published><updated>2005-04-17T15:29:51.300-07:00</updated><title type='text'>Linux Runlevels</title><content type='html'>Before you can configure access to services, you must understand Linux runlevels. A runlevel is a state, or mode, that is defined by the services listed in the directory /etc/rc.d/rc&lt;x&gt;.d, where &lt;x&gt; is the number of the runlevel.&lt;br /&gt;&lt;br /&gt;Red Hat Linux uses the following runlevels:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;0 — Halt&lt;br /&gt;&lt;br /&gt;1 — Single-user mode&lt;br /&gt;&lt;br /&gt;2 — Not used (user-definable)&lt;br /&gt;&lt;br /&gt;3 — Full multi-user mode&lt;br /&gt;&lt;br /&gt;4 — Not used (user-definable)&lt;br /&gt;&lt;br /&gt;5 — Full multi-user mode (with an X-based login screen)&lt;br /&gt;&lt;br /&gt;6 — Reboot&lt;br /&gt;&lt;br /&gt;If you configured the X Window System during the Red Hat Linux installation program, you had the option of choosing a graphical or text login screen. If you chose a text login screen, you are operating in runlevel 3. If you chose a graphical login screen, you are operating in runlevel 5.&lt;br /&gt;&lt;br /&gt;The default runlevel can be changed by modifying the /etc/inittab file, which contains a line near the top of the file similar to the following:&lt;br /&gt;&lt;br /&gt;id:3:initdefault:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Change the number in this line to the desired runlevel. The change will not take effect until you reboot the system.&lt;br /&gt;&lt;br /&gt;To change the runlevel immediately, use the command telinit followed by the runlevel number. You must be root to use this command.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377699129897972?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377699129897972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377699129897972' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377699129897972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377699129897972'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/linux-runlevels.html' title='Linux Runlevels'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377694923412284</id><published>2005-04-17T15:28:00.000-07:00</published><updated>2005-04-17T15:29:09.236-07:00</updated><title type='text'>Solution for "File argument list too long" message with grep</title><content type='html'>If get "File argument list too long" message with grep:&lt;br /&gt;&lt;br /&gt;ls -1 &gt; filelist&lt;br /&gt;awk '{ printf("grep 1a1 %s\n", $1) }' filelist &gt; script.sh&lt;br /&gt;chmod +x script.sh&lt;br /&gt;./script.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377694923412284?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377694923412284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377694923412284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377694923412284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377694923412284'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/solution-for-file-argument-list-too.html' title='Solution for &quot;File argument list too long&quot; message with grep'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377690233006295</id><published>2005-04-17T15:27:00.001-07:00</published><updated>2005-04-17T15:28:22.330-07:00</updated><title type='text'>Setting the Linux Host Name</title><content type='html'>Checking your Linux host name&lt;br /&gt;First, see if your host name is set correclty using the following commands:&lt;br /&gt;uname -n&lt;br /&gt;hostname -a&lt;br /&gt;hostname -s&lt;br /&gt;hostname -d&lt;br /&gt;hostname -f&lt;br /&gt;hostname&lt;br /&gt;&lt;br /&gt;If the above commands return correctly with no errors then all may be well; however, you may want to read on to verify that all settings are correct.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Configuring /etc/hosts&lt;br /&gt;If your IP address is assigned to you by a DHCP server, then /etc/hosts is configured as follows:&lt;br /&gt;127.0.0.1    mybox.mydomain.com    localhost.localdomain localhost mybox&lt;br /&gt;&lt;br /&gt;If you have a static IP address, then /etc/hosts is configured as follows:&lt;br /&gt;127.0.0.1    localhost.localdomain localhost&lt;br /&gt;192.168.0.10    mybox.mydomain.com    mybox&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Setting the Host Name using "hostname"&lt;br /&gt;After updating the /etc/hosts file correctly, the "hostname" command should be run as follows to set your hostname:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hostname mybox.mydomain.com&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------Checking /etc/HOSTNAME (if present)&lt;br /&gt;&lt;br /&gt;You may or may not have the file /etc/HOSTNAME:&lt;br /&gt;&lt;br /&gt;mybox.mydomain.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------Checking /etc/sysconfig/network&lt;br /&gt;If you have a static IP address, then /etc/sysconfig/network is configured as follows:&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME="mybox.mydomain.com"&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If your IP address is assigned to you by a DHCP server, and you wish to update the local DNS server through Dynamic DNS, then /etc/sysconfig/network is configured as follows:&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME="mybox.mydomain.com"&lt;br /&gt;DHCP_HOSTNAME="mybox.mydomain.com"&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------Checking /proc/sys/kernel/hostname&lt;br /&gt;&lt;br /&gt;This is checked with the following command:&lt;br /&gt;cat /proc/sys/kernel/hostname&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you need to set this file, you can either reboot or set it now with the following command:&lt;br /&gt;echo mybox.mydomain.com &gt; /proc/sys/kernel/hostname&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------Dynamic DNS - Updating the local DNS server with your host name and DHCP IP&lt;br /&gt;If you receive your IP address from a DHCP server, you may update the local DNS server by adding the following line to /etc/sysconfig/network for Red Hat:&lt;br /&gt;DHCP_HOSTNAME="mybox.mydomain.com"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377690233006295?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377690233006295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377690233006295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377690233006295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377690233006295'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/setting-linux-host-name.html' title='Setting the Linux Host Name'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377686966370922</id><published>2005-04-17T15:27:00.000-07:00</published><updated>2005-04-17T15:27:49.666-07:00</updated><title type='text'>Fixing error message: Domain of sender address apache@localhost.localdomain does not exist</title><content type='html'>Hey all I have this problem with sendmail. I have a website that I have made for a friend, and it has a form on it. To bundle up the form data and send it out I use a simple perl script which works, but when my server tries to send the form via sendmail it gets sent back with an error message saying:&lt;br /&gt;&lt;br /&gt;Final-Recipient: RFC822; klintonkerber@prodigy.net&lt;br /&gt;Action: failed&lt;br /&gt;Status: 5.1.8&lt;br /&gt;Diagnostic-Code: SMTP; 553 5.1.8 &lt;apache@localhost.localdomain&gt;... Domain of sender address apache@localhost.localdomain does not exist&lt;br /&gt;Last-Attempt-Date: Sun, 27 Jul 2003 16:07:09 -0700&lt;br /&gt;&lt;br /&gt;Anyone have any suggestions on this? Thanx guys!&lt;br /&gt;&lt;br /&gt;edit your sendmail.cf change the Cw entry appropriately. If you still have this problem, check your DNS, resolv.conf.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377686966370922?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377686966370922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377686966370922' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377686966370922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377686966370922'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fixing-error-message-domain-of-sender.html' title='Fixing error message: Domain of sender address apache@localhost.localdomain does not exist'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377677852521800</id><published>2005-04-17T15:25:00.000-07:00</published><updated>2005-04-17T15:26:18.526-07:00</updated><title type='text'>Sorting email in Pine</title><content type='html'>In Pine's generic configuration, messages are presented in the order in which they arrive. This default can be changed in the SETUP CONFIGURATION. You can also re-sort the folder on demand with the sort ($) command. Your sorting options are:&lt;br /&gt;&lt;br /&gt;S  Subject &lt;br /&gt;A  Arrival &lt;br /&gt;F  From &lt;br /&gt;D  Date &lt;br /&gt;Z  Size &lt;br /&gt;O  Ordered Subject &lt;br /&gt;R  Reverse&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377677852521800?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377677852521800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377677852521800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377677852521800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377677852521800'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/sorting-email-in-pine.html' title='Sorting email in Pine'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377674245762895</id><published>2005-04-17T15:23:00.000-07:00</published><updated>2005-04-17T15:25:42.456-07:00</updated><title type='text'>Linux Multiple IPs single computer</title><content type='html'>Setting Up Multiple IP Aliases In a Single File &lt;br /&gt;&lt;br /&gt;This document will show you how to setup multiple IP aliases in a single file for use as a web server or simply a linux box that needs multiple IP's assigned to it.&lt;br /&gt;&lt;br /&gt;1. cd /etc/sysconfig/network-scripts&lt;br /&gt;2. pico ifcfg-eth0-range0&lt;br /&gt;3. insert the following lines into the file&lt;br /&gt;&lt;br /&gt;IPADDR_START=10.0.1.1&lt;br /&gt;IPADDR_END=10.0.1.255&lt;br /&gt;CLONENUM_START=0&lt;br /&gt;&lt;br /&gt;the above lines will create 256 ipaddress you can use any combination of numbers as long as the numbers go from low to high.&lt;br /&gt;&lt;br /&gt;You cannot repeat numbers for example if you created an ifcfg-eth0-range1 and tried to use&lt;br /&gt;IPADDR_START=10.0.1.140 IPADDR_END=10.0.2.255 CLONENUM_START=0&lt;br /&gt;&lt;br /&gt;THE FILE WOULD FAIL for several reasons&lt;br /&gt;&lt;br /&gt;1. You cannot overlap ip addresses in this instance 140 had already been used.&lt;br /&gt;2. The ip addresses must all be in the same class C (ie 192.168.2.0 - 192.168.2.255 192.168.99.0 - 192.168.99.255)&lt;br /&gt;3. CLONENUM_START need to be sequencial since we used 256 clones in range0 we need CLONENUM_START=257 AND SO ON make sure there arent any backup coppies of the files in the /etc/sysconfig/network-scripts directory ir ~/etc/sysconfig/network-scripts or /etc/sysconfig/network-scripts~ as this will cause the startup to fail&lt;br /&gt;&lt;br /&gt;To activate the ip aliases you need to type: &gt; ifup ifcfg-eth0-range0 to verify that they are working type: &gt;ping 10.0.1.111 or whatever ip address you have assigned ...&lt;br /&gt;&lt;br /&gt;****personal note- don't just put this in ifcfg-eth0 - it will NOT work; also I've added ONBOOT=yes to the above&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;examples (first line of each block = filename):&lt;br /&gt;&lt;br /&gt;ifcfg-eth0:0&lt;br /&gt;DEVICE=eth0:0&lt;br /&gt;BOOTPROTO=static&lt;br /&gt;ONBOOT=yes&lt;br /&gt;IPADDR=123.123.123.1&lt;br /&gt;&lt;br /&gt;ifcfg-eth0:1&lt;br /&gt;DEVICE=eth0:1&lt;br /&gt;BOOTPROTO=static&lt;br /&gt;ONBOOT=yes&lt;br /&gt;IPADDR=123.123.123.2&lt;br /&gt;&lt;br /&gt;ifcfg-eth0:2&lt;br /&gt;DEVICE=eth0:2&lt;br /&gt;BOOTPROTO=static&lt;br /&gt;ONBOOT=yes&lt;br /&gt;IPADDR=123.123.123.3&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377674245762895?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377674245762895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377674245762895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377674245762895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377674245762895'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/linux-multiple-ips-single-computer.html' title='Linux Multiple IPs single computer'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377661112642045</id><published>2005-04-17T15:22:00.000-07:00</published><updated>2005-04-17T15:23:31.126-07:00</updated><title type='text'>Set up public-key authentication between an OpenSSH client and an OpenSSH server</title><content type='html'>Generate a key if necessary:&lt;br /&gt;&lt;br /&gt;$ mkdir -p ~/.ssh                        If it doesn't already exist&lt;br /&gt;$ chmod 700 ~/.ssh&lt;br /&gt;$ cd ~/.ssh&lt;br /&gt;$ ssh-keygen -t dsa&lt;br /&gt;Copy the public key to the remote host:&lt;br /&gt;&lt;br /&gt;$ scp -p id_dsa.pub remoteuser@remotehost:&lt;br /&gt;Password: ********&lt;br /&gt;Log into the remote host and install the public key:&lt;br /&gt;&lt;br /&gt;$ ssh -l remoteuser remotehost&lt;br /&gt;Password: ********&lt;br /&gt;&lt;br /&gt;remotehost$ mkdir -p ~/.ssh                        If it doesn't already exist&lt;br /&gt;remotehost$ chmod 700 ~/.ssh&lt;br /&gt;remotehost$ cat id_dsa.pub &gt;&gt; ~/.ssh/authorized_keys   (Appending)&lt;br /&gt;remotehost$ chmod 600 ~/.ssh/authorized_keys&lt;br /&gt;remotehost$ mv id_dsa.pub ~/.ssh                   Optional, just to be organized&lt;br /&gt;remotehost$ logout&lt;br /&gt;Log back in via public-key authentication:&lt;br /&gt;&lt;br /&gt;$ ssh -l remoteuser remotehost&lt;br /&gt;Enter passphrase for key '/home/smith/.ssh/id_dsa': ********&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377661112642045?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377661112642045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377661112642045' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377661112642045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377661112642045'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/set-up-public-key-authentication.html' title='Set up public-key authentication between an OpenSSH client and an OpenSSH server'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377643091717202</id><published>2005-04-17T15:19:00.000-07:00</published><updated>2005-04-17T15:20:30.916-07:00</updated><title type='text'>Get chkrootkit</title><content type='html'>Download chkrootkit from &lt;a href="http://www.reznor.com/tools/chkrootkit.tar.gz"&gt;http://www.reznor.com/tools/chkrootkit.tar.gz&lt;/a&gt; to make sure you don't have any rootkits installed by hackers on your system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377643091717202?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377643091717202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377643091717202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377643091717202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377643091717202'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/get-chkrootkit.html' title='Get chkrootkit'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377634536738298</id><published>2005-04-17T15:18:00.000-07:00</published><updated>2005-04-17T15:19:05.366-07:00</updated><title type='text'>Send email on command line in Linux example</title><content type='html'>mail -s emai_subject me@server.com &lt; /dev/null&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377634536738298?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377634536738298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377634536738298' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377634536738298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377634536738298'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/send-email-on-command-line-in-linux.html' title='Send email on command line in Linux example'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377628663163773</id><published>2005-04-17T15:17:00.000-07:00</published><updated>2005-04-17T15:18:06.633-07:00</updated><title type='text'>netstat -n</title><content type='html'>Use "netstat -n" to not resolve IP addresses to host names (in case host names are truncated in output.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377628663163773?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377628663163773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377628663163773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377628663163773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377628663163773'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/netstat-n.html' title='netstat -n'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377620071543095</id><published>2005-04-17T15:16:00.000-07:00</published><updated>2005-04-17T15:17:33.413-07:00</updated><title type='text'>Defending your Linux box against SYN flood attacks</title><content type='html'>Make sure you do not allow directed broadcast messages from the Internet.&lt;br /&gt;&lt;br /&gt;There are two types of defense against DDoS attacks.  Defending against a flood and keeping zombies off your system.  Make sure your system is up-to-date with all your hardware and software.  You also must employ egress anti-spoof filters on your external router or firewall.  Since DoS attacks almost always involve some spoofed packets, egress anti-spoof filters help a lot.&lt;br /&gt;&lt;br /&gt;The best defense I know of against an attack is fast detection and the ability to get the incident response forces moving at your ISP.  You need to employ IDS tools that can quickly alert you when a DDOS attack starts.  When you are alerted, you should immediately call a member of the incident response team of your ISP.  They will be able to block the flood traffic at the points where it enters their network.&lt;br /&gt;&lt;br /&gt;SYN flooding defense can be helped by having larger connection queues and SYN cookies. SYN cookies can be activated on a Linux machine by adding  echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies  to your boot sequence.  Also, a Linux machine can be configured as a proxy firewall that will add SYN cookie protection to an entire network.  To do this visit www.bronzesoft.org/projects/scfw/doc.html#dl However, if a flood attack does occur, you will need to quickly redirect critical traffic through another path, so redundant communication links are required. Another good idea would be to have 2 or more different ISP's for particularly sensitive systems.&lt;br /&gt;A list of different vendor approaches and patches to this can be found at www.nation-wide.net/~aleph1 .&lt;br /&gt;&lt;br /&gt;It would also be a good idea to create static ARP tables on your most sensitive networks to make sure no one can alter IP-to-MAC address mappings on your LANS.  Although this will make managing the network more difficult, it is a good idea.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you suspect one of your systems has been compromised and is running a zombie, check out the free tool called "Find DDOS" distributed by the National Infrastucture Protection Center.  This will scan your Linux and Solaris systems.  www.nipc.gov/warnings/advisories/2000/00-44.htm. &lt;br /&gt;Also, if you find a zombie you can put them to sleep with Zombie Zapper at razor.bindview.com/tools/ZombieZapper_form.shtml&lt;br /&gt;&lt;br /&gt;I would also disallow ICMP Echo Replies.  It is usually allowed so that inside users can ping outside of the network and receive a response.  This MUST be checked.&lt;br /&gt;&lt;br /&gt;You can test your network to see if it can/is being used as a Smurf amplifier by visiting www.powertech.no/smurf/ and use their online form to test your system.&lt;br /&gt;If your network is vulnerable, you must stop directed broadcast packets at your border router or firewall.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&gt; hi,&lt;br /&gt;&gt;&lt;br /&gt;&gt; i wanna be protected against syn flood attack ... ok ...&lt;br /&gt;&gt; but i don't really know what is the best solution :&lt;br /&gt;&gt;   iptables -A FORWARD -p tcp --syn -m limit --limit 1/s ACCEPT&lt;br /&gt;&gt; or&lt;br /&gt;&gt;   # Enable TCP SYN Cookie Protection&lt;br /&gt;&gt;   #echo 1 &gt; /proc/sys/net/ipv4/tcp_syncookies&lt;br /&gt;&gt;&lt;br /&gt;&gt; are there the same or not ???&lt;br /&gt;&lt;br /&gt;Totally different. The first limits your system to an connection rate of 1&lt;br /&gt;connect per second, this will affect users if you have a heavyly used&lt;br /&gt;server, therwise it will prevent system overload by connects. If the main&lt;br /&gt;purpose of your system is not serving connections, the rate limit does help&lt;br /&gt;to limit the affect of connection flooding.&lt;br /&gt;&lt;br /&gt;The second one is more specifically aimed towards syn floods and will not&lt;br /&gt;impact normal operations, cause syn cookies are only used if ressources get&lt;br /&gt;used up by a syn flood.&lt;br /&gt;&lt;br /&gt;If you use syn cookies, make sure to observe your kernels log and make sure&lt;br /&gt;that kernel is not sending syn cookies in normal load situations, cause this&lt;br /&gt;will decrease the TCP performance of the clients. There are parameters to&lt;br /&gt;tune, to make kernel wait longer before syn cookies are enabled. on small&lt;br /&gt;sized servers you do not need to tune this setting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377620071543095?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377620071543095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377620071543095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377620071543095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377620071543095'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/defending-your-linux-box-against-syn.html' title='Defending your Linux box against SYN flood attacks'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377612089268439</id><published>2005-04-17T15:14:00.000-07:00</published><updated>2005-04-17T15:15:20.893-07:00</updated><title type='text'>Example fstab with samba mounts</title><content type='html'>LABEL=/                 /                       ext3    defaults        1 1&lt;br /&gt;LABEL=/boot             /boot                   ext3    defaults        1 2&lt;br /&gt;/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0&lt;br /&gt;none                    /proc                   proc    defaults        0 0&lt;br /&gt;none                    /dev/shm                tmpfs   defaults        0 0&lt;br /&gt;none                    /dev/pts                devpts  gid=5,mode=620  0 0&lt;br /&gt;/dev/hda5               swap                    swap    defaults        0 0&lt;br /&gt;/dev/cdrom              /mnt/cdrom              auto    noauto,owner,kudzu,ro 0 0&lt;br /&gt;/dev/hdb1               /home/public            ext3    defaults        1 1&lt;br /&gt;/dev/hdc1               /home/av                ext3    defaults        1 1&lt;br /&gt;/SWAP                   swap                    swap    defaults        0 0&lt;br /&gt;//server/linux_backup      /home/linux_backup              smb             username=david,password=        0 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377612089268439?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377612089268439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377612089268439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377612089268439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377612089268439'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/example-fstab-with-samba-mounts.html' title='Example fstab with samba mounts'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377605175707076</id><published>2005-04-17T15:13:00.002-07:00</published><updated>2005-04-17T15:14:11.756-07:00</updated><title type='text'>Grab a website with Wget</title><content type='html'>wget --mirror http://www.yoursite.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377605175707076?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377605175707076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377605175707076' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377605175707076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377605175707076'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/grab-website-with-wget.html' title='Grab a website with Wget'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377603001876329</id><published>2005-04-17T15:13:00.001-07:00</published><updated>2005-04-17T15:13:50.020-07:00</updated><title type='text'>Uninstall GRUB from the MBR (Master Boot Record)</title><content type='html'>How to uninstall GRUB from the MBR (Master Boot Record) of the hard disk.&lt;br /&gt;&lt;br /&gt;Procedure&lt;br /&gt;As GRUB does not make any backup of the MBR during the installation, it can only be uninstalled by overwriting the MBR with another boot manager. Therefore, the MBR must be rewritten using a different operating system.&lt;br /&gt;Using a DOS or Windows 9x/ME Boot Floppy&lt;br /&gt;In case you have DOS or Windows 9x/ME on your system, you can use fdisk for this purpose. Create a rescue disk in DOS or Windows 9x/ME, use it to boot the computer, and execute fdisk as follows:&lt;br /&gt;     fdisk /mbr&lt;br /&gt;The MBR will be rewritten and GRUB will be uninstalled.&lt;br /&gt;Using an OS/2 Boot Floppy&lt;br /&gt;If you use OS/2, the corresponding command is:&lt;br /&gt;     fdisk /newmbr&lt;br /&gt;Using Windows XP&lt;br /&gt;In Windows XP, you can uninstall GRUB as follows:&lt;br /&gt;Boot from the Windows XP CD and press the "R" key during the setup in order to start the Recovery Console. Select your Windows XP installation from the list and enter the administrator password. At the input prompt, enter the command "FIXMBR" and confirm the query with "y". The MBR will be rewritten and GRUB will be uninstalled. Press "exit" to reboot the computer.&lt;br /&gt;&lt;br /&gt;Using Windows 2000&lt;br /&gt;In Windows 2000, you can uninstall GRUB as follows:&lt;br /&gt;Boot from the Windows 2000 CD and press the "R" key during the setup and the "K" key in the following menu in order to start the Recovery Console. Select your Windows 2000 installation from the list and enter the administrator password. At the input prompt, enter the command "FIXMBR" and confirm the query with "y". The MBR will be rewritten and GRUB will be uninstalled. Press "exit" to reboot the computer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377603001876329?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377603001876329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377603001876329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377603001876329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377603001876329'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/uninstall-grub-from-mbr-master-boot.html' title='Uninstall GRUB from the MBR (Master Boot Record)'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377600163500158</id><published>2005-04-17T15:13:00.000-07:00</published><updated>2005-04-17T15:13:21.636-07:00</updated><title type='text'>Using Samba Client to get a list of shares on a machine</title><content type='html'>smbclient -L &lt;ipaddr&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377600163500158?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377600163500158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377600163500158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377600163500158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377600163500158'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/using-samba-client-to-get-list-of.html' title='Using Samba Client to get a list of shares on a machine'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377594935467969</id><published>2005-04-17T15:11:00.000-07:00</published><updated>2005-04-17T15:12:29.356-07:00</updated><title type='text'>Path associated to program</title><content type='html'>If you're curious to learn the path associated with a program, you can issue the which command. For instance, issuing the command:&lt;br /&gt;&lt;br /&gt;which sort&lt;br /&gt;&lt;br /&gt;yields the output:&lt;br /&gt;&lt;br /&gt;/bin/sort&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377594935467969?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377594935467969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377594935467969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377594935467969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377594935467969'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/path-associated-to-program.html' title='Path associated to program'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377590314137343</id><published>2005-04-17T15:10:00.001-07:00</published><updated>2005-04-17T15:11:43.143-07:00</updated><title type='text'>BASH Environment Variable Description</title><content type='html'>BASH Path of the BASH executable file&lt;br /&gt;BASH_ENV Path of the BASH environment file, which specifies BASH options&lt;br /&gt;BASH_VERSION Version of BASH&lt;br /&gt;COLUMNS Width, in characters, of console window&lt;br /&gt;EUID Effective user ID&lt;br /&gt;HISTFILE Path of the BASH command history file&lt;br /&gt;HISTFILESIZE Maximum number of lines recorded in history file&lt;br /&gt;HISTSIZE Maximum number of commands recorded in history file&lt;br /&gt;HOME Path of user's home directory&lt;br /&gt;HOSTNAME Name of the host&lt;br /&gt;IFS Field separator (white space) characters&lt;br /&gt;LINES Length, in lines, of console window&lt;br /&gt;LOGNAME User's log in name&lt;br /&gt;LS_COLORS Options for ls command&lt;br /&gt;OSTYPE Operating system name ("Linux")&lt;br /&gt;PATH Program path&lt;br /&gt;PPID Process ID of the shell's parent process&lt;br /&gt;PS1 Command prompt string&lt;br /&gt;PS2 Continuation prompt string&lt;br /&gt;PS4 Execution trace string&lt;br /&gt;PWD Current working directory&lt;br /&gt;SHELL Path of the shell executable&lt;br /&gt;SHLVL Number of nested shell invocations&lt;br /&gt;TERM Terminal type&lt;br /&gt;UID User ID&lt;br /&gt;USER User name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Typical Environment Variables and Their Values&lt;br /&gt;&lt;br /&gt;[bmccarty@home bmccarty]$ set&lt;br /&gt;BASH=/bin/bash&lt;br /&gt;BASH_ENV=/home/bmccarty/.bashrc&lt;br /&gt;BASH_VERSION=1.14.7(1)&lt;br /&gt;COLUMNS=85&lt;br /&gt;EUID=2188&lt;br /&gt;HISTFILE=/home/bmccarty/.bash_history&lt;br /&gt;HISTFILESIZE=1000&lt;br /&gt;HISTSIZE=1000&lt;br /&gt;HOME=/home/bmccarty&lt;br /&gt;IFS=&lt;br /&gt;INPUTRC=/etc/inputrc&lt;br /&gt;LINES=49&lt;br /&gt;LOGNAME=bmccarty&lt;br /&gt;LS_COLORS=&lt;br /&gt;OPTERR=1&lt;br /&gt;OPTIND=1&lt;br /&gt;OSTYPE=Linux&lt;br /&gt;PATH=/usr/bin:/bin:/usr/bin:/usr/X11R6/&lt;br /&gt;   bin:/usr/local/bin:/home/bmccarty/bin&lt;br /&gt;PPID=26420&lt;br /&gt;PS1=[\u@\h \W]\$&lt;br /&gt;PS2=&gt;&lt;br /&gt;PS4=+&lt;br /&gt;PWD=/home/bmccarty&lt;br /&gt;SHELL=/bin/bash&lt;br /&gt;SHLVL=1&lt;br /&gt;TERM=vt102&lt;br /&gt;UID=2188&lt;br /&gt;USER=bmccarty&lt;br /&gt;USERNAME=&lt;br /&gt;_=bash&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377590314137343?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377590314137343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377590314137343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377590314137343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377590314137343'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/bash-environment-variable-description.html' title='BASH Environment Variable Description'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377583082465822</id><published>2005-04-17T15:10:00.000-07:00</published><updated>2005-04-17T15:10:30.823-07:00</updated><title type='text'>Changing the # of lines in .bash_history</title><content type='html'>HISTSIZE=50000&lt;br /&gt;HISTFILESIZE=50000&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377583082465822?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377583082465822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377583082465822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377583082465822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377583082465822'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/changing-of-lines-in-bashhistory.html' title='Changing the # of lines in .bash_history'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377572783975220</id><published>2005-04-17T15:06:00.000-07:00</published><updated>2005-04-17T15:08:47.840-07:00</updated><title type='text'>Example NFS /etc/exports &amp; /etc/fstab</title><content type='html'>/etc/exports:&lt;br /&gt;/home/user1/www 192.168.100.0/24(ro)&lt;br /&gt;/home/user2/images   192.168.100.0/24(ro)            &lt;br /&gt;&lt;br /&gt;/etc/fstab:&lt;br /&gt;&lt;br /&gt;LABEL=/                 /                       ext3    defaults        1 1&lt;br /&gt;none                    /dev/pts                devpts  gid=5,mode=620  0 0&lt;br /&gt;none                    /proc                   proc    defaults        0 0&lt;br /&gt;none                    /dev/shm                tmpfs   defaults        0 0&lt;br /&gt;/dev/hda2               swap                    swap    defaults        0 0&lt;br /&gt;/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0&lt;br /&gt;/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0&lt;br /&gt;ftp.server.com:/home/user2/images       /home/www/web/htdocs/images      nfs     defaults        0 0&lt;br /&gt;ftp.server.com:/home/user1/www       /home/www/web/htdocs    nfs     defaults        0 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377572783975220?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377572783975220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377572783975220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377572783975220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377572783975220'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/example-nfs-etcexports-etcfstab.html' title='Example NFS /etc/exports &amp; /etc/fstab'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377557315213479</id><published>2005-04-17T15:05:00.000-07:00</published><updated>2005-04-17T15:06:13.153-07:00</updated><title type='text'>lastcomm example</title><content type='html'>Do a:&lt;br /&gt;&lt;br /&gt;lastcomm --debug | less&lt;br /&gt;&lt;br /&gt;to see commands ran by people.  Process account must be turned on first.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377557315213479?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377557315213479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377557315213479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377557315213479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377557315213479'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/lastcomm-example.html' title='lastcomm example'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377549772951524</id><published>2005-04-17T15:04:00.000-07:00</published><updated>2005-04-17T15:04:57.730-07:00</updated><title type='text'>Supressing error messages</title><content type='html'>./my_script 2&gt;/dev/null&lt;br /&gt;&lt;br /&gt;If it still outputs stuff you it's probably not an error but rather STDOUT, so suppress that like this:&lt;br /&gt;&lt;br /&gt;./my_script 1&gt;/dev/null&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377549772951524?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377549772951524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377549772951524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377549772951524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377549772951524'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/supressing-error-messages.html' title='Supressing error messages'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377542921243924</id><published>2005-04-17T15:03:00.000-07:00</published><updated>2005-04-17T15:03:49.213-07:00</updated><title type='text'>In vim, to add an extra tab to all the lines</title><content type='html'>%s/^/\t/g&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377542921243924?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377542921243924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377542921243924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377542921243924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377542921243924'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/in-vim-to-add-extra-tab-to-all-lines.html' title='In vim, to add an extra tab to all the lines'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377527690002703</id><published>2005-04-17T14:58:00.000-07:00</published><updated>2005-04-17T15:01:16.900-07:00</updated><title type='text'>Testing the security of your Linux box</title><content type='html'>Do a portscan and look for open ports on your server:&lt;br /&gt;&lt;br /&gt;nmap -sS -T Aggressive -p 1-10000 www.your_server | grep open&lt;br /&gt;&lt;br /&gt;List all open local ports &amp;amp; program names:&lt;br /&gt;&lt;br /&gt;lsof -P -n -i&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377527690002703?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377527690002703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377527690002703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377527690002703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377527690002703'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/testing-security-of-your-linux-box.html' title='Testing the security of your Linux box'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377510512890791</id><published>2005-04-17T14:56:00.000-07:00</published><updated>2005-04-17T14:58:25.126-07:00</updated><title type='text'>Find all subdomains of a domain</title><content type='html'>To find out subdomains of a domain, first do:&lt;br /&gt;&lt;br /&gt;dig domain_name.com&lt;br /&gt;&lt;br /&gt;to find the name servers in the authority section (we'll call them ns1.foo.bar and ns2.foo.bar)&lt;br /&gt;&lt;br /&gt;then do a:&lt;br /&gt;&lt;br /&gt;dig @ns1.foo.bar domain_name.com axfr&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;dig @ns2.foo.bar domain_name.com axfr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377510512890791?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377510512890791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377510512890791' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377510512890791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377510512890791'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/find-all-subdomains-of-domain.html' title='Find all subdomains of a domain'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377464344809730</id><published>2005-04-17T14:50:00.000-07:00</published><updated>2005-04-17T14:50:43.446-07:00</updated><title type='text'>Change default umask in WU-FTPD</title><content type='html'>To change default umask of 022 (like a chmod 644 for new files) in wu-ftpd, add the following in /etc/ftpaccess:&lt;br /&gt;&lt;br /&gt;defumask 002&lt;br /&gt;upload /home/* * yes 0664&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377464344809730?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377464344809730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377464344809730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377464344809730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377464344809730'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/change-default-umask-in-wu-ftpd.html' title='Change default umask in WU-FTPD'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377459081373044</id><published>2005-04-17T14:49:00.000-07:00</published><updated>2005-04-17T14:49:50.813-07:00</updated><title type='text'>Fix CVS sticky tag is not a branch error</title><content type='html'>If getting sticky tag for file "is not a branch" error when trying to do cvs ci,&lt;br /&gt;&lt;br /&gt;Just run  cvs update -A on these files to revert your working copy to the head&lt;br /&gt;revisions.  If you made changes, they should be patched to the latest versions.&lt;br /&gt;The update -A will clear sticky tags so you can proceed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377459081373044?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377459081373044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377459081373044' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377459081373044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377459081373044'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fix-cvs-sticky-tag-is-not-branch-error.html' title='Fix CVS sticky tag is not a branch error'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377454594942759</id><published>2005-04-17T14:48:00.000-07:00</published><updated>2005-04-17T14:49:05.950-07:00</updated><title type='text'>nmap example</title><content type='html'>nmap is a port scanner&lt;br /&gt;&lt;br /&gt;scans ports with os fingerprint + uptime&lt;br /&gt;&lt;br /&gt;nmap -sS -O 127.0.0.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377454594942759?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377454594942759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377454594942759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377454594942759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377454594942759'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/nmap-example.html' title='nmap example'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377447331534327</id><published>2005-04-17T14:46:00.001-07:00</published><updated>2005-04-17T14:47:53.316-07:00</updated><title type='text'>Disable IDENT/DNS slow ftp connection for wu-ftpd</title><content type='html'>Set 'timeout RFC931 0' to the /etc/ftpaccess file.&lt;br /&gt;&lt;br /&gt;if that doesn't work, try:&lt;br /&gt;&lt;br /&gt;In your /etc/xinetd.d/wu-ftpd file, check to see&lt;br /&gt;if you have the "USERID" option set for either "log_on_success" or&lt;br /&gt;"log_on_failure". If so, remove the "USERID" option. I guess having that&lt;br /&gt;in there causes ident to try and figure out who is logging in regardless of&lt;br /&gt;what flags or server args you are using.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377447331534327?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377447331534327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377447331534327' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377447331534327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377447331534327'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/disable-identdns-slow-ftp-connection.html' title='Disable IDENT/DNS slow ftp connection for wu-ftpd'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377438412108719</id><published>2005-04-17T14:46:00.000-07:00</published><updated>2005-04-17T14:46:24.123-07:00</updated><title type='text'>How to create a console application</title><content type='html'>Here's an example. The following is a code sample for a simple C program. Cut and paste it into a file named hello.c to try it out.&lt;br /&gt;&lt;br /&gt;   #include &lt;stdio.h&gt;&lt;br /&gt;&lt;br /&gt;   int main(int argc, char **argv)&lt;br /&gt;   {&lt;br /&gt;      printf ("Hello\n");&lt;br /&gt;      return (0);&lt;br /&gt;   }&lt;br /&gt;              &lt;br /&gt;If you want to create a console mode executable hello.exe from a c file called hello.c, try the following:&lt;br /&gt;   gcc -c hello.c&lt;br /&gt;              &lt;br /&gt;This compiles hello.c into an object file, hello.o&lt;br /&gt;   gcc -o hello hello.o&lt;br /&gt;              &lt;br /&gt;This creates an executable hello.exe from hello.o. Alternatively, you can compile and link in one step using:&lt;br /&gt;   gcc -o hello hello.c&lt;br /&gt;              &lt;br /&gt;The following is a code sample for a simple C++ program. Cut and paste it into a file named hello.cpp to try it out.&lt;br /&gt;&lt;br /&gt;   #include &lt;iostream&gt;&lt;br /&gt;   int main(int argc, char **argv)&lt;br /&gt;   {&lt;br /&gt;     cout &lt;&lt; "Hello" &lt;&lt; endl;&lt;br /&gt;     return (0);&lt;br /&gt;   }&lt;br /&gt;              &lt;br /&gt;For the C++ program, use the following to compile and link:&lt;br /&gt;&lt;br /&gt;   g++ -c hello.cpp&lt;br /&gt;   g++ -o hello hello.o&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377438412108719?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377438412108719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377438412108719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377438412108719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377438412108719'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/how-to-create-console-application.html' title='How to create a console application'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377428276273616</id><published>2005-04-17T14:44:00.000-07:00</published><updated>2005-04-17T14:45:27.310-07:00</updated><title type='text'>Delete all message in Pine</title><content type='html'>To mark and delete all messages in Pine, do:&lt;br /&gt;&lt;br /&gt;;aad&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How do I mark all messages in a newsgroup as "read" or "deleted"?&lt;br /&gt;First, you need to make sure that you have access to all the commands necessary.&lt;br /&gt;&lt;br /&gt;From the [M]AIN MENU, choose [S]etup and then [C]onfig, then make sure that there are 'X' marks next to these two options:&lt;br /&gt;&lt;br /&gt;           [X]  enable-aggregate-command-set&lt;br /&gt;           [X]  enable-flag-cmd&lt;br /&gt;To mark all messages as "read" or "deleted" press and release each of the following:&lt;br /&gt;&lt;br /&gt;        ; = Select&lt;br /&gt;        a = All&lt;br /&gt;        a = Apply&lt;br /&gt;        * = Flag&lt;br /&gt;which will bring you to the FLAG MAINTENANCE screen (if you do not have enable-flag-screen-implicitly set in SETUP CONFIGURATION, select "^T To Flag Details" to reach it now):&lt;br /&gt;&lt;br /&gt;Set desired flags for current message below. An 'X' means set it, and a ' ' means to unset it. Choose "E Exit Flags" when finished.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377428276273616?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377428276273616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377428276273616' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377428276273616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377428276273616'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/delete-all-message-in-pine.html' title='Delete all message in Pine'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377421098389022</id><published>2005-04-17T14:42:00.001-07:00</published><updated>2005-04-17T14:43:30.983-07:00</updated><title type='text'>Fix for "Delaying eth0 initialization" error message</title><content type='html'>&gt; When I start up RedHat Linux 6.0!~&lt;br /&gt;&gt; and When "Bring up eth0"&lt;br /&gt;&gt; It said:&lt;br /&gt;&gt;            "Delaying eth0 initialization"&lt;br /&gt;&gt;&lt;br /&gt;&gt; and when I type "ifup eth0"&lt;br /&gt;&gt;&lt;br /&gt;&gt; It also said:&lt;br /&gt;&gt;            "Delaying eth0 initialization"&lt;br /&gt;&gt;&lt;br /&gt;&gt; How to fix this problem?&lt;br /&gt;&gt; THANK YOU FOR REPLY!&lt;br /&gt;&lt;br /&gt;Check your /etc/conf.modules&lt;br /&gt;Most likely,  it doesn't contain an alias for your Ethernet-adapter.&lt;br /&gt;That should be something like :    alias eth0 hp100&lt;br /&gt;In my case it's hp100 because I have a HP-networkcard.&lt;br /&gt;You should also check in /var/log/dmesg whether the kernel actually&lt;br /&gt;detects the networkcard.&lt;br /&gt;&lt;br /&gt;NOTE: in later Linux versions /etc/conf.modules has been renamed to&lt;br /&gt;/etc/modules.conf (contains loadable modules like NIC driver,&lt;br /&gt;sound card driver, etc)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377421098389022?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377421098389022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377421098389022' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377421098389022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377421098389022'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fix-for-delaying-eth0-initialization_17.html' title='Fix for &quot;Delaying eth0 initialization&quot; error message'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377421071164836</id><published>2005-04-17T14:42:00.000-07:00</published><updated>2005-04-17T14:43:30.713-07:00</updated><title type='text'>Fix for "Delaying eth0 initialization" error message</title><content type='html'>&gt; When I start up RedHat Linux 6.0!~&lt;br /&gt;&gt; and When "Bring up eth0"&lt;br /&gt;&gt; It said:&lt;br /&gt;&gt;            "Delaying eth0 initialization"&lt;br /&gt;&gt;&lt;br /&gt;&gt; and when I type "ifup eth0"&lt;br /&gt;&gt;&lt;br /&gt;&gt; It also said:&lt;br /&gt;&gt;            "Delaying eth0 initialization"&lt;br /&gt;&gt;&lt;br /&gt;&gt; How to fix this problem?&lt;br /&gt;&gt; THANK YOU FOR REPLY!&lt;br /&gt;&lt;br /&gt;Check your /etc/conf.modules&lt;br /&gt;Most likely,  it doesn't contain an alias for your Ethernet-adapter.&lt;br /&gt;That should be something like :    alias eth0 hp100&lt;br /&gt;In my case it's hp100 because I have a HP-networkcard.&lt;br /&gt;You should also check in /var/log/dmesg whether the kernel actually&lt;br /&gt;detects the networkcard.&lt;br /&gt;&lt;br /&gt;NOTE: in later Linux versions /etc/conf.modules has been renamed to&lt;br /&gt;/etc/modules.conf (contains loadable modules like NIC driver,&lt;br /&gt;sound card driver, etc)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377421071164836?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377421071164836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377421071164836' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377421071164836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377421071164836'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fix-for-delaying-eth0-initialization.html' title='Fix for &quot;Delaying eth0 initialization&quot; error message'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377414790089207</id><published>2005-04-17T14:34:00.000-07:00</published><updated>2005-04-17T14:42:27.900-07:00</updated><title type='text'>Format floppy disk in MS-DOS format or in ext2 format</title><content type='html'>-To format floppy disk in ext2 format, just run&lt;br /&gt;&lt;br /&gt;fdformat /dev/fd0&lt;br /&gt;&lt;br /&gt;-then&lt;br /&gt;&lt;br /&gt;mkfs -t ext2 /dev/fd0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377414790089207?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377414790089207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377414790089207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377414790089207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377414790089207'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/format-floppy-disk-in-ms-dos-format-or.html' title='Format floppy disk in MS-DOS format or in ext2 format'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377361355952726</id><published>2005-04-17T14:32:00.000-07:00</published><updated>2005-04-17T14:33:48.233-07:00</updated><title type='text'>The date command - setting the date</title><content type='html'>date MMDDHHmmYYYY&lt;br /&gt;&lt;br /&gt;example:&lt;br /&gt;&lt;br /&gt;root# date 041511242005            &lt;------ command entered&lt;br /&gt;Fri April 15 11:24:00 EDT 2005       &lt;------- output&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This syncs the hardware and software clocks:&lt;br /&gt;&lt;br /&gt;hwclock --set --date="`date '+%m/%d/%y %H:%M:%S'`"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377361355952726?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377361355952726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377361355952726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377361355952726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377361355952726'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/date-command-setting-date.html' title='The date command - setting the date'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377347956264174</id><published>2005-04-17T14:30:00.000-07:00</published><updated>2005-04-17T14:31:19.563-07:00</updated><title type='text'>Convert HTML to PostScript using html2ps - example</title><content type='html'>html2ps /tmp/temp.html /tmp/tmp.ps gs -sDEVICE=laserjet -sPAPERSIZE=letter -sOutputFile=/tmp/tmp.pcl -dNOPAUSE -q /tmp/tmp.ps -c quit&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377347956264174?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377347956264174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377347956264174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377347956264174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377347956264174'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/convert-html-to-postscript-using.html' title='Convert HTML to PostScript using html2ps - example'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377337834024984</id><published>2005-04-17T14:29:00.000-07:00</published><updated>2005-04-17T14:29:38.343-07:00</updated><title type='text'>Setting up Vim (.vimrc)</title><content type='html'>vi has a large set of options that can be set to alter the behaviour of the editor. Vim expands on this set. I have listed only those that are most important to a beginning user.&lt;br /&gt;Options are set by typing :set &gt;option&lt;&gt;option&lt; is the name of the option. There are two kinds of options: boolean options (those which can be either on or off) and variable options (those which take a value). In vim, :help options will provide quite a nice summary of the options.&lt;br /&gt;&lt;br /&gt;Options may either be set on the fly while running vi, or they may be read from a configuration file called .exrc, .vimrc, or .gvimrc. :set all will show you the current setting of every option. Option name Description Example&lt;br /&gt;autoindent sets autoindenting on :set autoindent&lt;br /&gt;backup Causes vim to save a copy of the file with a ~ on the end without the changes you just made :set backup&lt;br /&gt;tabstop Determines the width of the tab character :set tabstop=4&lt;br /&gt;ruler Shows cursor position on the modeline :set ruler&lt;br /&gt;wrap Determines whether a line exceeding the width of the display will wrap to the next line :set wrap&lt;br /&gt;showbreak Sets which characters(if any) will appear in front of the second portion of the wrapped line :set showbreak=&gt;&lt;br /&gt;showmode Displays the mode on the modeline when not in command mode :set showmode&lt;br /&gt;fileformat Sets the end of line character used when the file is saved :set fileformat=dos&lt;br /&gt;&lt;br /&gt;sample .vimrc file:&lt;br /&gt;&lt;br /&gt;:set tabstop=4&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377337834024984?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377337834024984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377337834024984' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377337834024984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377337834024984'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/setting-up-vim-vimrc.html' title='Setting up Vim (.vimrc)'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377321421497171</id><published>2005-04-17T14:25:00.000-07:00</published><updated>2005-04-17T14:26:54.216-07:00</updated><title type='text'>ngrep examples</title><content type='html'>Be quiet, look only at tcp packets with either source or dest port 80 on interface eth1, look for anything matching 'www'. &lt;br /&gt;&lt;br /&gt;ngrep  -qd eth1  'www'  tcp port 80&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Look at all packets with either source or dest port 53 on interface le0, that match match 'in-addr'. Be quiet. &lt;br /&gt;&lt;br /&gt;ngrep  -qd server  in-addr  port 53&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Look only at tcp packets with either source or dest port 21, look for anything resembling an FTP login. &lt;br /&gt;&lt;br /&gt;ngrep  'USER|PASS'  tcp port 21&lt;br /&gt;&lt;br /&gt;Look at tcp packets with either source or dest port 21, that match either 'user' or 'pass' (case insensitively) as a word. &lt;br /&gt;&lt;br /&gt;ngrep  -wi  'user|pass'  tcp port 21&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377321421497171?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377321421497171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377321421497171' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377321421497171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377321421497171'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/ngrep-examples.html' title='ngrep examples'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377308120457584</id><published>2005-04-17T14:22:00.000-07:00</published><updated>2005-04-17T14:28:44.573-07:00</updated><title type='text'>Using a proxy server for CPAN.pm, Wget, &amp; other shell utitlies</title><content type='html'>In your .bashrc, add:&lt;br /&gt;&lt;br /&gt;export ftp_proxy="http://your_ftp_proxy:port"&lt;br /&gt;&lt;br /&gt;export ftp_proxy="http://your_http_proxy:port"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377308120457584?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377308120457584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377308120457584' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377308120457584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377308120457584'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/using-proxy-server-for-cpanpm-wget.html' title='Using a proxy server for CPAN.pm, Wget, &amp; other shell utitlies'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377295321282109</id><published>2005-04-17T14:21:00.000-07:00</published><updated>2005-04-17T14:22:33.213-07:00</updated><title type='text'>Search and replace certain words in file using Perl examples</title><content type='html'>perl -e "s/old_string/new_string/g;" -pi.save $(find DirectoryName -type f)&lt;br /&gt;&lt;br /&gt;perl -e "s/&lt;\!--#include virtual=\".\/menu.html\" --&gt;/&lt;?php include(\"menu.inc\"); ?&gt;/g;" -pi.bak $(find . -type f)&lt;br /&gt;&lt;br /&gt;perl -e "s/shtml/php/g;" -pi.bak $(find . -type f)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377295321282109?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377295321282109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377295321282109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377295321282109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377295321282109'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/search-and-replace-certain-words-in.html' title='Search and replace certain words in file using Perl examples'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377286021827678</id><published>2005-04-17T14:20:00.000-07:00</published><updated>2005-04-17T14:21:00.220-07:00</updated><title type='text'>Fix CVS error: cvs server: cannot open /root/.cvsignore : Permission denied</title><content type='html'>IF:&lt;br /&gt;&gt;        server_args     = --allow-root=/usr/local/repository pserver&lt;br /&gt;&gt; cvs server: cannot open /root/.cvsignore : Permission denied&lt;br /&gt;&gt; cvs [server aborted]: can't chdir (/root): Permission denied&lt;br /&gt;&lt;br /&gt;THEN:&lt;br /&gt;&lt;br /&gt; server_args     = -f --allow-root=/usr/local/repository pserver&lt;br /&gt;&lt;br /&gt;will fix it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377286021827678?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377286021827678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377286021827678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377286021827678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377286021827678'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/fix-cvs-error-cvs-server-cannot-open.html' title='Fix CVS error: cvs server: cannot open /root/.cvsignore : Permission denied'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377264706915691</id><published>2005-04-17T14:17:00.000-07:00</published><updated>2005-04-17T14:17:27.070-07:00</updated><title type='text'>Delete all files in directroy except....</title><content type='html'>In Unix, to delete all the files in a directory except the ones that start with the letter "a", do the following:&lt;br /&gt;&lt;br /&gt;rm [!a]*&lt;br /&gt;&lt;br /&gt;But let's say there are many files, and you want to delete everything except a file called "my_file". Use grep's inverse matching capability here:&lt;br /&gt;&lt;br /&gt;rm $(ls * | grep -v my_file)&lt;br /&gt;&lt;br /&gt;Of course if there are other files with "my_file" as part of their filename, then those won't be deleted either. The following will ensure that this doesn't happen:&lt;br /&gt;&lt;br /&gt;rm $(ls * | grep -v '^my_file$')&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377264706915691?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377264706915691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377264706915691' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377264706915691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377264706915691'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/delete-all-files-in-directroy-except.html' title='Delete all files in directroy except....'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377261146615314</id><published>2005-04-17T14:16:00.000-07:00</published><updated>2005-04-17T14:16:51.466-07:00</updated><title type='text'>ls sort files</title><content type='html'>The "ls" file/directory listing tool doesn't have built-in support for sorting files according to file size. But by piping the output to "sort", this can be done, e.g.&lt;br /&gt;&lt;br /&gt;ls -al | sort +4n&lt;br /&gt;&lt;br /&gt;Will sort by size from the smallest file to the largest. The following will display files from largest to smallest:&lt;br /&gt;&lt;br /&gt;ls -al | sort +4nr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377261146615314?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377261146615314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377261146615314' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377261146615314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377261146615314'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/ls-sort-files.html' title='ls sort files'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377257427818270</id><published>2005-04-17T14:14:00.001-07:00</published><updated>2005-04-17T14:20:07.926-07:00</updated><title type='text'>Setting up CVS initially</title><content type='html'>1)start a repository&lt;br /&gt;&lt;br /&gt;cvs -d /usr/local/newrepos init&lt;br /&gt;&lt;br /&gt;2)add group cvs&lt;br /&gt;&lt;br /&gt;groupadd cvs&lt;br /&gt;&lt;br /&gt;3)edit /etc/group and add any user who need to access repository to this group, e.g.&lt;br /&gt;&lt;br /&gt;cvs:*:105:david,dahveed&lt;br /&gt;&lt;br /&gt;4)group ownership and permissions to repository directory&lt;br /&gt;&lt;br /&gt;cd /usr/local/newrepos&lt;br /&gt;chgrp -R cvs .&lt;br /&gt;chmod ug+rwx . CVSROOT&lt;br /&gt;&lt;br /&gt;Setting up the CVS password server (pserver)&lt;br /&gt;&lt;br /&gt;cvspserver  stream tcp nowait root /usr/bin/cvs cvs --allow-root=/home/david/cvsroot  --allow-root=/home/david/cvsmisc pserver&lt;br /&gt;&lt;br /&gt;If you want to make the same work under xinetd, you save a config file in /etc/xinetd.d called cvspserver, (where the last line tells it the names of your repositories):&lt;br /&gt;service cvspserver&lt;br /&gt;{&lt;br /&gt;    socket_type         = stream&lt;br /&gt;    protocol            = tcp&lt;br /&gt;    wait                = no&lt;br /&gt;    user                = root&lt;br /&gt;    passenv             =&lt;br /&gt;    server              = /usr/bin/cvs&lt;br /&gt;    server_args         = --allow-root=/home/pauljohn/cvsroot --allow-root=/home/pauljohn/cvsmisc pserver&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;5)&lt;br /&gt;create /usr/local/newrepos/CVSROOT/passwd (for people who don't have a system account and if you want a diff password for the user)&lt;br /&gt;&lt;br /&gt;format = username:encrypted_password:optional_system_username&lt;br /&gt;&lt;br /&gt;use passwd to create password and paste into CVSROOT/passwd&lt;br /&gt;&lt;br /&gt;Better- use the folowing perl script to generate the password&lt;br /&gt;&lt;br /&gt;==========&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;srand (time());&lt;br /&gt;my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";&lt;br /&gt;my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);&lt;br /&gt;my $plaintext = shift;&lt;br /&gt;my $crypttext = crypt ($plaintext, $salt);&lt;br /&gt;&lt;br /&gt;print "${crypttext}\n";&lt;br /&gt;&lt;br /&gt;=========&lt;br /&gt;&lt;br /&gt;./cryptout.pl "password_in_plain_text"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@server lin]# cvs -d :pserver:david@localhost:/usr/local/repository login&lt;br /&gt;(Logging in to david@localhost)&lt;br /&gt;CVS password:&lt;br /&gt;&lt;br /&gt;cvs import -m "Initial my_apps import" apps davd start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377257427818270?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377257427818270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377257427818270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377257427818270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377257427818270'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/setting-up-cvs-initially.html' title='Setting up CVS initially'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377247965282263</id><published>2005-04-17T14:14:00.000-07:00</published><updated>2005-04-17T14:14:39.653-07:00</updated><title type='text'>Reload squid.conf without restarting squid</title><content type='html'>squid -k reconfigure&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377247965282263?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377247965282263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377247965282263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377247965282263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377247965282263'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/reload-squidconf-without-restarting.html' title='Reload squid.conf without restarting squid'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377244468535226</id><published>2005-04-17T14:08:00.000-07:00</published><updated>2005-04-17T14:14:04.686-07:00</updated><title type='text'>RPM queries</title><content type='html'>To see all installed RPMs, do a:&lt;br /&gt;&lt;br /&gt;[root@server bin]# rpm -qa&lt;br /&gt;&lt;br /&gt;To see where e.g. /bin/mail came from do a:&lt;br /&gt;&lt;br /&gt;[root@server bin]# rpm -qf /bin/mail&lt;br /&gt;mailx-8.1.1-31.1&lt;br /&gt;&lt;br /&gt;To see verbose info on an rpm, do a e.g.:&lt;br /&gt;&lt;br /&gt;[root@server bin]# rpm -qi mailx&lt;br /&gt;Name        : mailx                        Relocations: (not relocateable)&lt;br /&gt;Version     : 8.1.1                             Vendor: Red Hat, Inc.&lt;br /&gt;Release     : 31.1                          Build Date: Fri 01 Aug 2003 01:39:48 PM PDT&lt;br /&gt;Install Date: Tue 02 Dec 2003 12:26:05 AM PST      Build Host: daffy.perf.redhat.com&lt;br /&gt;Group       : Applications/Internet         Source RPM: mailx-8.1.1-31.1.src.rpm&lt;br /&gt;Size        : 80381                            License: BSD&lt;br /&gt;Signature   : DSA/SHA1, Tue 28 Oct 2003 03:55:12 PM PST, Key ID b44269d04f2a6fd2&lt;br /&gt;Packager    : Red Hat, Inc. &lt;http://bugzilla.redhat.com/bugzilla&gt;&lt;br /&gt;Summary     : The /bin/mail program for sending quick email messages.&lt;br /&gt;Description :&lt;br /&gt;The mailx package installs the /bin/mail program, which is used to&lt;br /&gt;send quick email messages without opening up a full-featured&lt;br /&gt;mail user agent. Mailx is often used in shell scripts.&lt;br /&gt;&lt;br /&gt;Do -ql to see all files contained in the rpm:&lt;br /&gt;&lt;br /&gt;[root@server bin]# rpm -ql !$&lt;br /&gt;rpm -ql mailx&lt;br /&gt;/bin/mail&lt;br /&gt;/etc/mail.rc&lt;br /&gt;/usr/bin/Mail&lt;br /&gt;/usr/lib/mail.help&lt;br /&gt;/usr/lib/mail.tildehelp&lt;br /&gt;/usr/share/man/man1/Mail.1.gz&lt;br /&gt;/usr/share/man/man1/mail.1.gz&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377244468535226?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377244468535226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377244468535226' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377244468535226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377244468535226'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/rpm-queries.html' title='RPM queries'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-12243715.post-111377210387056424</id><published>2005-04-17T14:06:00.000-07:00</published><updated>2005-04-17T14:08:23.870-07:00</updated><title type='text'>Uninstalling RPM packages</title><content type='html'>Test it out first:&lt;br /&gt;&lt;br /&gt;rpm -e --test my_package&lt;br /&gt;&lt;br /&gt;Erase it, no dependencies:&lt;br /&gt;&lt;br /&gt;rpm -e --nodeps my_package&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/12243715-111377210387056424?l=linux-journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-journal.blogspot.com/feeds/111377210387056424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=12243715&amp;postID=111377210387056424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377210387056424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12243715/posts/default/111377210387056424'/><link rel='alternate' type='text/html' href='http://linux-journal.blogspot.com/2005/04/uninstalling-rpm-packages.html' title='Uninstalling RPM packages'/><author><name>Tech Journalist</name><uri>http://www.blogger.com/profile/06397377314569093942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
