If you guys looking for an iOS app which can connect via SSH to your NIX servers, here’s your answer 🙂
Link : http://itunes.apple.com/us/app/prompt/id421507115?mt=8
More Info : https://www.panic.com/blog/2011/04/introducing-prompt-ssh-for-ios/
Transfer Default MySQL Database Directory From /var To /usr
Default partition size for /var normally not enough to store databases, so we need to store it somewhere bigger (/usr). The steps will show how to transfer database from /var/db/mysql (default path installation for MySQL in FreeBSD) to /usr/local/mysql/data (suggested path). Steps as follows :-
DONE!
My squid.conf
Some of my friends asked how my squid.conf looks like. Here’s how it looks like. Feel free to comment so that i can improve on the configuration
[text]
[root@squid ~]# cat /usr/local/etc/squid/squid.conf
[/text]
HOWTO Delete Old Directory in UNIX
There are 2 ways u can do this. For example if u want to delete directory older than 7 days :
First method :
[text]
find /path/dir -type d -mtime +7 -exec rm -rf {} ;
[/text]
Second method :
[text]
find /path/dir -type d -mtime +7 | xargs rm -rf {} ;
[/text]
You can always change the +7 value to any number of days preferred.
FYI, this command is only for directory deletion, if u want to delete files, u can change the “-type d” (d means directory) to “-type f” (f means files).
Example :
[text]
find /path/dir/unl.txt -type f -mtime +7 | xargs rm -f {} ;
[/text]
P/S : There’s an alternative command which we can use, tmpwatch (more info : http://linux.about.com/library/cmd/blcmdl8_tmpwatch.htm)
Speed Up Connection to ProFTPD server
Open the config file (/usr/local/etc/proftpd.conf)
add these lines into the config
[plain]
IdentLookups          off
UseReverseDNS off[/plain]
and restart your proFTPd services. Tadaa~!