<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hana &#38; Sarah's Freeware blog &#187; Unix Admin</title>
	<atom:link href="http://www.neox.net/w/category/unix-admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neox.net/w</link>
	<description>Introduction to the Best Freewares to fill in the missing part of the default Windows XP and Vista.</description>
	<lastBuildDate>Mon, 30 Nov 2009 20:58:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quick: Windows Keyboard Shortcut</title>
		<link>http://www.neox.net/w/2008/05/06/quick-windows-shortcut/</link>
		<comments>http://www.neox.net/w/2008/05/06/quick-windows-shortcut/#comments</comments>
		<pubDate>Wed, 07 May 2008 02:58:55 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Links to note]]></category>
		<category><![CDATA[Unix Admin]]></category>
		<category><![CDATA[Carpal Tunnel Syndrome]]></category>
		<category><![CDATA[Shortcut]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/2008/05/06/quick-windows-shortcut/</guid>
		<description><![CDATA[Shortcuts are good to know if you use computers a lot. Especially they help to reduce the mouse movement which is very important if you suffer from the Carpal Tunnel Syndrome.
I just read this article from Lifehacker and I found these shortcut really great! I never knew that there are shortcuts for these kind of [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2009/06/03/best-freeware-for-windows-by-lifehacker/' rel='bookmark' title='Permanent Link: Best Freeware for Windows by LifeHacker'>Best Freeware for Windows by LifeHacker</a></li><li><a href='http://www.neox.net/w/2009/05/13/the-fastest-way-to-look-up-a-word-from-a-dictionary/' rel='bookmark' title='Permanent Link: Quick dictionary lookup using The Sage and Launchy'>Quick dictionary lookup using The Sage and Launchy</a></li><li><a href='http://www.neox.net/w/2009/05/27/quotepad-note-manager-for-quick-access/' rel='bookmark' title='Permanent Link: QuotePad &#8211; note manager for quick access'>QuotePad &#8211; note manager for quick access</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Shortcuts are good to know if you use computers a lot. Especially they help to reduce the mouse movement which is very important if you suffer from the Carpal Tunnel Syndrome.</p>
<p>I just read this article from Lifehacker and I found these shortcut really great! I never knew that there are shortcuts for these kind of everyday tasks. I love these shortcuts.</p>
<ul>
<li><strong>Win+R:</strong> shows Run dialog</li>
<li><strong>Win+D:</strong> toggles Show Desktop</li>
<li><strong>Win+E:</strong> starts Windows Explorer</li>
<li><strong>Win+L:</strong> locks computer</li>
</ul>
<p>If you use Firefox , below shortcut are useful too.</p>
<ul>
<li><strong>Ctrl + L</strong> : brings focus to the location bar.</li>
<li><strong>Ctrl + K</strong> : brings focus to the search bar.</li>
</ul>
<p><a href="http://lifehacker.com/386930/make-windows-more-productive-without-installing-a-thing">LifeHacker: Make Windows More Productive Without Installing a Thing</a></p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2009/06/03/best-freeware-for-windows-by-lifehacker/' rel='bookmark' title='Permanent Link: Best Freeware for Windows by LifeHacker'>Best Freeware for Windows by LifeHacker</a></li><li><a href='http://www.neox.net/w/2009/05/13/the-fastest-way-to-look-up-a-word-from-a-dictionary/' rel='bookmark' title='Permanent Link: Quick dictionary lookup using The Sage and Launchy'>Quick dictionary lookup using The Sage and Launchy</a></li><li><a href='http://www.neox.net/w/2009/05/27/quotepad-note-manager-for-quick-access/' rel='bookmark' title='Permanent Link: QuotePad &#8211; note manager for quick access'>QuotePad &#8211; note manager for quick access</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2008/05/06/quick-windows-shortcut/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PuTTY Auto Login Macro using AutoHotKey</title>
		<link>http://www.neox.net/w/2008/04/23/putty-auto-login-macro-using-autohotkey/</link>
		<comments>http://www.neox.net/w/2008/04/23/putty-auto-login-macro-using-autohotkey/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 16:26:53 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix Admin]]></category>
		<category><![CDATA[autohotkey]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[MadeByMe]]></category>
		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/2008/04/23/putty-auto-login-macro-using-autohotkey/</guid>
		<description><![CDATA[PuTTY is the best SSH client and it&#8217;s free. But it lacks of this little function that I really want &#8211; Automatic login. 
So I have searched many Google pages and found this PuTTY Connection Manager which I explained details in my previous post. It is a very good software. 
But somehow I wanted the [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2008/04/22/putty-auto-login-macro-putty-connection-manager/' rel='bookmark' title='Permanent Link: PuTTY Auto Login Macro &#8211; PuTTY Connection Manager'>PuTTY Auto Login Macro &#8211; PuTTY Connection Manager</a></li><li><a href='http://www.neox.net/w/2007/04/18/putty-a-free-telnetssh-client/' rel='bookmark' title='Permanent Link: PuTTY : A Free Telnet/SSH Client'>PuTTY : A Free Telnet/SSH Client</a></li><li><a href='http://www.neox.net/w/2007/04/18/putty-exporting-profile-data-for-migration/' rel='bookmark' title='Permanent Link: PuTTY: Exporting Profile Data for migration'>PuTTY: Exporting Profile Data for migration</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>PuTTY is the best SSH client and it&#8217;s free. But it lacks of this little function that I really want &#8211; Automatic login. </p>
<p>So I have searched many Google pages and found this PuTTY Connection Manager which I explained details in <a href='http://www.neox.net/w/2008/04/22/putty-auto-login-macro-putty-connection-manager/'>my previous post</a>. It is a very good software. </p>
<p>But somehow I wanted the auto login function without the extra programs. I wanted it to be done directly with PuTTY, not within the frame of PuTTY Connection Manager.</p>
<p><a href='http://www.autohotkey.com'><img src="http://www.neox.net/w/wp-content/data/autohotkey_logo.gif" width="228" height="133" alt="" title="" class="left" /></a>And I found this software called <strong>AutoHotKey</strong> (<a href='http://www.autohotkey.com/'>http://www.autohotkey.com/</a>) which can automate keyboard and mouse actions. But I gave up to use it at that time because I was too lazy to read all the instructions and to come up with a script for the auto login.</p>
<p>But yesterday, I decided to take a look again and this time I successfully created the Auto Login script! To tell you the truth, it was not easy but it is worth it. I am proud of myself <img src='http://www.neox.net/w/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So here is the script.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre>; You need to define the full path where the putty.exe exists . 'putty_profile' should be existing profile name.
v_program=%A_ProgramFiles%\PuTTY\putty.exe -load putty_profile
v_userid=youruserid
v_passwd=yourpasswd
; msec to wait before sending userid
v_wait_userid=1000
; msec to wait before sending password
v_wait_passwd=500
&nbsp;
;-------------------------------------------------
; To make modifier keys to work properly (such as Shift)
SetKeyDelay, 0, 10
&nbsp;
run, %v_program% , , , newpid
&nbsp;
;you need to wait a little for the window to initialize
;sleep, 100
winwait, ahk_pid %newpid%
&nbsp;
;wait for the login prompt to appear
sleep, %v_wait_userid%
ControlSend, , %v_userid%{enter}, ahk_pid %newpid%
&nbsp;
sleep, %v_wait_passwd%
ControlSend, , %v_passwd%{enter}, ahk_pid %newpid%
&nbsp;
;create unique title so you won't be lost 
WinGetTitle, v_title, ahk_pid %newpid%
v_newtitle=%v_title% - %newpid%
WinSetTitle, ahk_pid %newpid%,,%v_newtitle%</pre></td></tr></table></div>

<p><div style='background-image: url(/w/image/buy_amazon.jpg);border:1px dotted #000000; padding:5px;text-align:center;background-color:#ffffff;'>
<a href="http://affiliate.buy.com/gateway.aspx?adid=17662&aid=10389803&pid=3498002&sURL=http%3A%2F%2Fwww.buy.com%2Fretail%2Fclearance%2Ftodays_deals.asp%3Floc%3D14982">Buy.com's Deal of the Day!</a> | 
<a href='http://www.amazon.com/gp/goldbox/tag=nxblog-20'>Amazon.com's Today Deal</a> | 
<a href="http://www.tkqlhce.com/a374cy63y5LPQVUMMOLNMRQRMOO" >Abe's of Maine's Deal of The Day!</a>
</div></p>
<p>If you want to try this yourself, you will need to change some information.<br />
<span id="more-153"></span></p>
<ol>
<li>Install AutoHotKey software.</li>
<li>Create any file name with extension .ahk. For example &#8217;ssh.ahk&#8217; would be fine.</li>
<li>Copy &#038; paste above code into the file. But need to change the values.<br />
   v_program: PuTTY location with the -load option and connection profile name<br />
   v_userid: userid<br />
   v_passwd: passwd<br />
   v_wait_userid : msec to wait before sending userid<br />
   v_wait_passwd : msec to wait before sending passwd
</li>
<li>Save it and double click on the file to execute it. And watch the PuTTY logging in the server automagically!</li>
</ol>
<p>In fact, you can easily add additional commands at the end of the script to execute further commands.</p>
<p>Below is an example.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre>&nbsp;
;maybe you want to wait some seconds while initial welcome screen appears. Let's say 2 seconds.
sleep, 2000 
&nbsp;
;cd upload
ControlSend,,cd upload{enter} , ahk_pid %newpid%
&nbsp;
;You can send the folder list to your email account.
ControlSend,,ls|mail -s &quot;Daily File Listing for Upload&quot; your@emailaccount.com{enter}, ahk_pid %newpid%</pre></td></tr></table></div>

<p>Note that there is a little issue that the password is saved as plain text. But I can live with it for now.</p>
<p>Here is my script in action.<br />

<div >
<div id='hana_flv_flow_2'></div>
</div>

<script type='text/javascript'>
    flashembed('hana_flv_flow_2',
      { src:'http://www.neox.net/w/wp-content/plugins/hana-flv-player/flowplayer/FlowPlayerDark.swf', wmode: 'transparent', width: 400,  height: 320 },
      { config: { videoFile: 'http://www.neox.net/video/autologin.flv', autoPlay: false ,loop: false, autoRewind: true, autoBuffering: false,
			 initialScale: 'scale' 

	    }}
    );
</script></p>
<p>Come visit again for more information on PuTTY.</p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2008/04/22/putty-auto-login-macro-putty-connection-manager/' rel='bookmark' title='Permanent Link: PuTTY Auto Login Macro &#8211; PuTTY Connection Manager'>PuTTY Auto Login Macro &#8211; PuTTY Connection Manager</a></li><li><a href='http://www.neox.net/w/2007/04/18/putty-a-free-telnetssh-client/' rel='bookmark' title='Permanent Link: PuTTY : A Free Telnet/SSH Client'>PuTTY : A Free Telnet/SSH Client</a></li><li><a href='http://www.neox.net/w/2007/04/18/putty-exporting-profile-data-for-migration/' rel='bookmark' title='Permanent Link: PuTTY: Exporting Profile Data for migration'>PuTTY: Exporting Profile Data for migration</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2008/04/23/putty-auto-login-macro-using-autohotkey/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
<enclosure url="http://www.neox.net/w/wp-content/data/autologin.wmv" length="1084446" type="video/x-ms-wmv" />
		</item>
		<item>
		<title>proftpd &#8211; HiddenStor config option &#8211; hide file while uploading!</title>
		<link>http://www.neox.net/w/2007/01/24/proftpd-hiddenstor-config-tag-hide-file-whie-uploading/</link>
		<comments>http://www.neox.net/w/2007/01/24/proftpd-hiddenstor-config-tag-hide-file-whie-uploading/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 22:59:24 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/2007/01/24/proftpd-hiddenstor-config-tag-hide-file-whie-uploading/</guid>
		<description><![CDATA[There is a case that two same simultaneous connections access the same file.
Before the one connection finishes uploading, second connection downloads the incomplete file and deletes them.  
You can prevent this situation by using HiddenStor and HideFiles options if you are using proftpd ftp server.
In your /etc/proftpd.conf ,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
&#60;Global&#62;
  AllowOverwrite     [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/24/php-php-uploading-problem/' rel='bookmark' title='Permanent Link: [php] PHP uploading problem'>[php] PHP uploading problem</a></li><li><a href='http://www.neox.net/w/2006/08/23/named-allowing-query-for-only-local-domains/' rel='bookmark' title='Permanent Link: [named] allowing query for only local domains'>[named] allowing query for only local domains</a></li><li><a href='http://www.neox.net/w/2006/08/25/extract-a-single-file-from-the-tar-file/' rel='bookmark' title='Permanent Link: Extract a single file from the tar file.'>Extract a single file from the tar file.</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>There is a case that two same simultaneous connections access the same file.<br />
Before the one connection finishes uploading, second connection downloads the incomplete file and deletes them.  </p>
<p>You can prevent this situation by using HiddenStor and HideFiles options if you are using proftpd ftp server.</p>
<p>In your /etc/proftpd.conf ,</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre>&lt;Global&gt;
  AllowOverwrite                yes
  #slee:using .in.$filename convention and block other connection to download
  #must work with  HideFiles
  HiddenStor on
&nbsp;
  &lt;Limit ALL SITE_CHMOD&gt;
    AllowAll
  &lt;/Limit&gt;
&lt;/Global&gt;
&nbsp;
&lt;Directory /*&gt;
  #HideFiles (\.conf|passwd)$
  HideFiles (\.in.*)$
&lt;/Directory&gt;</pre></td></tr></table></div>

<p>By defining the correct options, you can effectively block the unfinished uploading files to be shown in the directory listing. </p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/24/php-php-uploading-problem/' rel='bookmark' title='Permanent Link: [php] PHP uploading problem'>[php] PHP uploading problem</a></li><li><a href='http://www.neox.net/w/2006/08/23/named-allowing-query-for-only-local-domains/' rel='bookmark' title='Permanent Link: [named] allowing query for only local domains'>[named] allowing query for only local domains</a></li><li><a href='http://www.neox.net/w/2006/08/25/extract-a-single-file-from-the-tar-file/' rel='bookmark' title='Permanent Link: Extract a single file from the tar file.'>Extract a single file from the tar file.</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2007/01/24/proftpd-hiddenstor-config-tag-hide-file-whie-uploading/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mysqlimport</title>
		<link>http://www.neox.net/w/2006/10/25/mysqlimport/</link>
		<comments>http://www.neox.net/w/2006/10/25/mysqlimport/#comments</comments>
		<pubDate>Wed, 25 Oct 2006 18:06:24 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/2006/10/25/mysqlimport/</guid>
		<description><![CDATA[input file: 
1. tablename.txt
2. Tab deliminated by default
3. use full path with all the parent path readable by mysql user

$&#62; mysqlimport -u user -p dbname /path/to/input/tablename.txt

Also if there is autoincrement field , use number 0.


Related posts:[php] Installing addtional modules separately[Java] Java Compiling &#038; Execution in Shell


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/24/php-installing-addtional-modules-separately/' rel='bookmark' title='Permanent Link: [php] Installing addtional modules separately'>[php] Installing addtional modules separately</a></li><li><a href='http://www.neox.net/w/2006/08/23/java-java-compiling-execution-in-shell/' rel='bookmark' title='Permanent Link: [Java] Java Compiling &#038; Execution in Shell'>[Java] Java Compiling &#038; Execution in Shell</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>input file: </p>
<p>1. tablename.txt<br />
2. Tab deliminated by default<br />
3. use full path with all the parent path readable by mysql user</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; mysqlimport -u user -p dbname /path/to/input/tablename.txt</pre></div></div>

<p>Also if there is autoincrement field , use number 0.</p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/24/php-installing-addtional-modules-separately/' rel='bookmark' title='Permanent Link: [php] Installing addtional modules separately'>[php] Installing addtional modules separately</a></li><li><a href='http://www.neox.net/w/2006/08/23/java-java-compiling-execution-in-shell/' rel='bookmark' title='Permanent Link: [Java] Java Compiling &#038; Execution in Shell'>[Java] Java Compiling &#038; Execution in Shell</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/10/25/mysqlimport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User Quota Control</title>
		<link>http://www.neox.net/w/2006/08/25/user-quota-control/</link>
		<comments>http://www.neox.net/w/2006/08/25/user-quota-control/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 04:14:16 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/?p=44</guid>
		<description><![CDATA[[requirement]
1.kernel must be compiled with quota support ( Modern linux are usually OK)
2.quota rpm package installed

put &#8216;usrquota&#8217; in the partition you want to activate quota in /etc/fstab

/dev/sda2    /      ext2  defaults 1 1
/dev/sda3    /usr   ext2 defaults,usrquota 1 2
...

create quota.user in the partition

$&#62; [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/mysql-adding-user-privileges/' rel='bookmark' title='Permanent Link: MySQL Adding user &#038; privileges'>MySQL Adding user &#038; privileges</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>[requirement]<br />
1.kernel must be compiled with quota support ( Modern linux are usually OK)<br />
2.quota rpm package installed<br />
<span id="more-44"></span><br />
put &#8216;usrquota&#8217; in the partition you want to activate quota in /etc/fstab</p>

<div class="wp_syntax"><div class="code"><pre>/dev/sda2    /      ext2  defaults 1 1
/dev/sda3    /usr   ext2 defaults,usrquota 1 2
...</pre></div></div>

<p>create quota.user in the partition</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; touch /usr/quota.user</pre></div></div>

<p>[commands]<br />
1. quotacheck -a<br />
checking all partitions for any user files and directories (should be in the system initialize<br />
file /etc/rc.d/rc.sysinit)</p>
<p>2. quotaon -a<br />
activate all the quotas in all partitions (should be in /etc/rc.d/rc.sysinit)</p>
<p>3. quotaoff<br />
deactivate quotas</p>
<p>4. edquota username<br />
define user quota </p>
<p>example</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; edquota -p cuser duser1 duser2 duser3...
    (copying cuser's quota info to duser1, duser2...)
$&gt; edquota -t 
    (setting grace period)</pre></div></div>

<p>5. repquota -a<br />
see all the user quota of all partition</p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/mysql-adding-user-privileges/' rel='bookmark' title='Permanent Link: MySQL Adding user &#038; privileges'>MySQL Adding user &#038; privileges</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/08/25/user-quota-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpm command example</title>
		<link>http://www.neox.net/w/2006/08/25/rpm-command-example/</link>
		<comments>http://www.neox.net/w/2006/08/25/rpm-command-example/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 04:10:58 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/?p=43</guid>
		<description><![CDATA[Query info about package:

rpm -qil package(binary)name

if you want info about all installed packeges

rpm -qail

INSTALL package:

rpm -ivh package_name

Forcing Installation (ignoring dependency problem)

rpm -ivh --force --nodeps package_name

verify package

rpm -V -a   #verfiy all package
rpm -V package_name



Related posts:rpm build from RPM source package[named] allowing query for only local domainsApache httpd 2.0.54 &#038; php 4.4.0 install under redhat [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/' rel='bookmark' title='Permanent Link: rpm build from RPM source package'>rpm build from RPM source package</a></li><li><a href='http://www.neox.net/w/2006/08/23/named-allowing-query-for-only-local-domains/' rel='bookmark' title='Permanent Link: [named] allowing query for only local domains'>[named] allowing query for only local domains</a></li><li><a href='http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/' rel='bookmark' title='Permanent Link: Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9'>Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Query info about package:</p>

<div class="wp_syntax"><div class="code"><pre>rpm -qil package(binary)name</pre></div></div>

<p>if you want info about all installed packeges</p>

<div class="wp_syntax"><div class="code"><pre>rpm -qail</pre></div></div>

<p>INSTALL package:</p>

<div class="wp_syntax"><div class="code"><pre>rpm -ivh package_name</pre></div></div>

<p>Forcing Installation (ignoring dependency problem)</p>

<div class="wp_syntax"><div class="code"><pre>rpm -ivh --force --nodeps package_name</pre></div></div>

<p>verify package</p>

<div class="wp_syntax"><div class="code"><pre>rpm -V -a   #verfiy all package
rpm -V package_name</pre></div></div>



<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/' rel='bookmark' title='Permanent Link: rpm build from RPM source package'>rpm build from RPM source package</a></li><li><a href='http://www.neox.net/w/2006/08/23/named-allowing-query-for-only-local-domains/' rel='bookmark' title='Permanent Link: [named] allowing query for only local domains'>[named] allowing query for only local domains</a></li><li><a href='http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/' rel='bookmark' title='Permanent Link: Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9'>Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/08/25/rpm-command-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpm build from RPM source package</title>
		<link>http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/</link>
		<comments>http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 04:10:12 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/?p=42</guid>
		<description><![CDATA[find .spec file in /usr/src/redhat/SPECS
rpm -bc xxx.spec : build stage
rpm -bi xxx.spec : install stage
rpm -bb xxx.spec : build binary package
rpm -bs xxx.spec : build source package
rpm -ba xxx.spec : build binary &#038; source package
first install source rpm package using rpm command
goto /usr/src/SPECS folder
edit httpd.spec 
for example you may want to edit configure part of [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/' rel='bookmark' title='Permanent Link: Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9'>Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9</a></li><li><a href='http://www.neox.net/w/2006/08/24/php-module-compilationpayflow-pro-verisign/' rel='bookmark' title='Permanent Link: [php] module compilation:Payflow Pro Verisign'>[php] module compilation:Payflow Pro Verisign</a></li><li><a href='http://www.neox.net/w/2006/08/25/rpm-command-example/' rel='bookmark' title='Permanent Link: rpm command example'>rpm command example</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>find .spec file in /usr/src/redhat/SPECS</p>
<p>rpm -bc xxx.spec : build stage<br />
rpm -bi xxx.spec : install stage</p>
<p>rpm -bb xxx.spec : build binary package<br />
rpm -bs xxx.spec : build source package<br />
rpm -ba xxx.spec : build binary &#038; source package</p>
<p>first install source rpm package using rpm command</p>
<p>goto /usr/src/SPECS folder</p>
<p>edit httpd.spec </p>
<p>for example you may want to edit configure part of the httpd.spec file</p>
<p>and then</p>
<p>You can create binary rpm package (redhat 8 &#038; up)</p>
<p>  rpmbuild -bb httpd.spec </p>
<p>compiled files will be written in /usr/src/BUILD folder</p>
<p>Then you can use rpm -ivh command to install it.</p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/' rel='bookmark' title='Permanent Link: Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9'>Apache httpd 2.0.54 &#038; php 4.4.0 install under redhat 9</a></li><li><a href='http://www.neox.net/w/2006/08/24/php-module-compilationpayflow-pro-verisign/' rel='bookmark' title='Permanent Link: [php] module compilation:Payflow Pro Verisign'>[php] module compilation:Payflow Pro Verisign</a></li><li><a href='http://www.neox.net/w/2006/08/25/rpm-command-example/' rel='bookmark' title='Permanent Link: rpm command example'>rpm command example</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Adding user &amp; privileges</title>
		<link>http://www.neox.net/w/2006/08/25/mysql-adding-user-privileges/</link>
		<comments>http://www.neox.net/w/2006/08/25/mysql-adding-user-privileges/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 04:09:26 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/?p=41</guid>
		<description><![CDATA[
grant all privileges on MYDBNAME.* to user@localhost identified by 'somepass' with grant option;
&#160;
flush privileges;



Related posts:User Quota Control[named] allowing query for only local domains


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/user-quota-control/' rel='bookmark' title='Permanent Link: User Quota Control'>User Quota Control</a></li><li><a href='http://www.neox.net/w/2006/08/23/named-allowing-query-for-only-local-domains/' rel='bookmark' title='Permanent Link: [named] allowing query for only local domains'>[named] allowing query for only local domains</a></li></ol>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre>grant all privileges on MYDBNAME.* to user@localhost identified by 'somepass' with grant option;
&nbsp;
flush privileges;</pre></div></div>



<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/25/user-quota-control/' rel='bookmark' title='Permanent Link: User Quota Control'>User Quota Control</a></li><li><a href='http://www.neox.net/w/2006/08/23/named-allowing-query-for-only-local-domains/' rel='bookmark' title='Permanent Link: [named] allowing query for only local domains'>[named] allowing query for only local domains</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/08/25/mysql-adding-user-privileges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to stickybit, setuidbit</title>
		<link>http://www.neox.net/w/2006/08/25/how-to-stickybit-setuidbit/</link>
		<comments>http://www.neox.net/w/2006/08/25/how-to-stickybit-setuidbit/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 04:07:13 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/?p=39</guid>
		<description><![CDATA[1.sticky bit : regardless of directory&#8217;s access, only directory&#8217;s owner can delete files.
(only for directories)

$&#62; chmod 01755 dirname
drwxr-xr-t

2.setuid bit: when you execute the program effective uid becomes as progams owner&#8217;s uid (such as passwd). Therefore , if execute bit is not set, this is meaningless

$&#62; chmod 02755 exefile
rwxr-sr-x 
$&#62; chmod 04755 exefile  
rwsr-xr-x



No related [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>1.sticky bit : regardless of directory&#8217;s access, only directory&#8217;s owner can delete files.<br />
(only for directories)</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; chmod 01755 dirname
drwxr-xr-t</pre></div></div>

<p>2.setuid bit: when you execute the program effective uid becomes as progams owner&#8217;s uid (such as passwd). Therefore , if execute bit is not set, this is meaningless</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; chmod 02755 exefile
rwxr-sr-x 
$&gt; chmod 04755 exefile  
rwsr-xr-x</pre></div></div>



<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/08/25/how-to-stickybit-setuidbit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache httpd 2.0.54 &amp; php 4.4.0 install under redhat 9</title>
		<link>http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/</link>
		<comments>http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 04:03:17 +0000</pubDate>
		<dc:creator>HanaDaddy</dc:creator>
				<category><![CDATA[Unix Admin]]></category>

		<guid isPermaLink="false">http://www.neox.net/w/?p=35</guid>
		<description><![CDATA[Pleas note that this article orginially written about 1 year ago.

I spent 2 days installing Apach 2.0.54 &#038; php 4.4.0. under redhat 9.
The main reason was to implement GD2 functions in PHP.
And to install the softwares using rpms as much as possible.
I know. It was a pain.
Before you&#8217;re doing anything copy existing config files

$&#62;cp -r [...]


Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/24/php-module-compilationpayflow-pro-verisign/' rel='bookmark' title='Permanent Link: [php] module compilation:Payflow Pro Verisign'>[php] module compilation:Payflow Pro Verisign</a></li><li><a href='http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/' rel='bookmark' title='Permanent Link: rpm build from RPM source package'>rpm build from RPM source package</a></li><li><a href='http://www.neox.net/w/2006/08/24/php-installing-addtional-modules-separately/' rel='bookmark' title='Permanent Link: [php] Installing addtional modules separately'>[php] Installing addtional modules separately</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Pleas note that this article orginially written about 1 year ago.<br />
<span id="more-35"></span><br />
I spent 2 days installing Apach 2.0.54 &#038; php 4.4.0. under redhat 9.</p>
<p>The main reason was to implement GD2 functions in PHP.<br />
And to install the softwares using rpms as much as possible.</p>
<p>I know. It was a pain.</p>
<p>Before you&#8217;re doing anything copy existing config files</p>

<div class="wp_syntax"><div class="code"><pre>$&gt;cp -r /etc/httpd /etc/httpd.backup
$&gt;cp  /etc/php.ini /etc/php.ini.backup
$&gt;cp -r /etc/php.d /etc/php.d.backup</pre></div></div>

<p>Also , find a fast redhat 9 rpm download site.<br />
You will need to download &#038; install bunch of rpms if you haven&#8217;t.</p>
<p>First I downloaded httpd-2.0.54.tar.gz from apache.org website.<br />
And I realized that there is a .spec file. It means that you can use rpmbuild command to compile &#038; install it.</p>
<p>so&#8230;</p>
<p>I unzipped &#038; untarred httpd-2.0.54.tar.gz</p>
<p>Also, had to copy httpd-2.0.54.tar.gz in /usr/src/redhat/SOURCES </p>
<p>Then I chdir into the untarred directory &#038; ran</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; rpmbuild -bb httpd.spec</pre></div></div>

<p>Then it prompted me lots of dependent rpm packages.<br />
Some of them I was lucky that I found rpm packages from rpmfind.net<br />
But, I had to compile few of the packages manually.</p>
<p>Anyway, I used &#8211;nodeps option when running found rpm packages.<br />
It worked anyway.</p>
<p>by running -e option you need to uninstall previous default httpd version</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; rpm -e httpd-2.0.40-21
$&gt; rpm -e httpd-devel-2.0.40-21
$&gt; rpm -e httpd-manual-2.0.40-21</pre></div></div>

<p>and chdir into /usr/src/redhat/RPMS/i386</p>
<p>You will see 3 rpms. You need to install at least 2 rpms.</p>

<div class="wp_syntax"><div class="code"><pre>$&gt; rpm -Uvh httpd-2.0.54-1.i386.rpm
$&gt; rpm -Uvh httpd-devel-2.0.54-1.i386.rpm</pre></div></div>

<p>For the php, I downloaded the lastest PHP 4 package. I wanted PHP4 since I felt like PHP5 might cause more problem during the installation.</p>
<p>I&#8217;ve got the configure lines by creating a test php page and inserted phpinfo() function. When you visit this test php page with the browser, I will be able to find the configure command used to compile the current PHP .</p>
<p>I have used this command to configure my new 4.4.0 package.</p>
<p>But during the steps the options reduced down to below</p>

<div class="wp_syntax"><div class="code"><pre>'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' \
	'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' \
	'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' \
	'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' \
	'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' \
	'--sharedstatedir=/usr/com' '--mandir=/usr/share/man' \
	'--infodir=/usr/share/info' '--cache-file=../config.cache' \
	'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'\
	'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' \
	'--disable-rpath' '--enable-inline-optimization' '--with-bz2' \
	'--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' \
	'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' \ 
	'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' \
	'--with-gettext' '--with-ncurses' '--with-gmp' \
	'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' \
	'--with-pspell' '--with-regex=system' '--with-xml' \
	'--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' \
	'--enable-bcmath' '--enable-exif' '--enable-ftp' \
	'--enable-magic-quotes' '--enable-safe-mode' \
	'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' \
	'--enable-discard-path' '--enable-track-vars' \
	'--enable-trans-sid' '--enable-yp' '--enable-wddx' \
	'--without-oci8' '--with-pear=/usr/share/pear' \
	'--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' \
	'--with-ldap=shared' '--with-mysql=shared,/usr' '--with-unixODBC=shared' \
	'--enable-memory-limit' '--enable-bcmath' '--enable-shmop' \
	'--enable-versioning' '--enable-calendar' '--enable-dbx' \
	'--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' \
	'--with-mhash'</pre></div></div>

<p>I needed those &#8216;&#8211;with-mhash&#8217; for some personal reason. </p>
<p>then I ran</p>

<div class="wp_syntax"><div class="code"><pre>$&gt;make
$&gt;make install</pre></div></div>

<p>Now chdir into modules directory &#038; copy all .so files into /usr/lib/php4.</p>

<div class="wp_syntax"><div class="code"><pre>$&gt;cp *.so /usr/lib/php4</pre></div></div>

<p>You need to manually copy the php.ini-dist into the /etc directory.<br />
Also you might want to modify the php.ini comparing with the backedup php.ini file if you have customized the previous version php.ini file.</p>
<p>Especially make sure you insert the</p>

<div class="wp_syntax"><div class="code"><pre>extension_dir = &quot;/usr/lib/php4&quot;</pre></div></div>

<p>in the new php.ini.</p>


<p>Related posts:<ol><li><a href='http://www.neox.net/w/2006/08/24/php-module-compilationpayflow-pro-verisign/' rel='bookmark' title='Permanent Link: [php] module compilation:Payflow Pro Verisign'>[php] module compilation:Payflow Pro Verisign</a></li><li><a href='http://www.neox.net/w/2006/08/25/rpm-build-from-rpm-source-package/' rel='bookmark' title='Permanent Link: rpm build from RPM source package'>rpm build from RPM source package</a></li><li><a href='http://www.neox.net/w/2006/08/24/php-installing-addtional-modules-separately/' rel='bookmark' title='Permanent Link: [php] Installing addtional modules separately'>[php] Installing addtional modules separately</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.neox.net/w/2006/08/25/apache-httpd-2054-php-440-install-under-redhat-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->