Admins eHow SysAdmin Tips & Tricks

September 25, 2014

The Internetā€™s hilarious reaction to #bendgate

Filed under: General — admin @ 9:34 am

Very well deserve it #Apple šŸ˜€ #GETREKT


(more…)

September 24, 2014

Apple released iPant and special bend fixing tools for iPhone 6/6+ owners

Filed under: Apple,iPhone — Tags: , , , , — admin @ 7:19 pm

In the wake of the news that iPhone 6/6+ are being bent in the pockets of users :
http://www.reddit.com/r/iphone/comments/2hbmwd/so_have_any_of_your_6plus_actually_bent/


(more…)

September 21, 2014

#AppleWave, The new way to charge your iPhone super fast

Filed under: Apple — Tags: , , , , , — admin @ 6:34 am

If you have an iPhone 6/6+ or an older iPhone with with iOS 8, then you can benefit from Apple’s new technology called Apple Wave. iOS 8 contains drivers which enables iPhone to be charged using any normal household microwave. I personally tried it myself and was able to charge an iPhone from 20% to 90% in about 60 seconds. This is really awesome.

Here is Apple’s official introduction to Apple Wave :

apple-wave

September 10, 2014

A few words with iSheeps who are going to buy iPhone 6/6+

Filed under: Android,Apple,iPhone — Tags: , , , , — admin @ 6:52 am

iphone-troll

I feel you iSheeps, it should be so hard that everyone pokes fun at you because of your nonsenseĀ ideasĀ like golden size or rule of Thumb ? Do you remember calling bigger phones bricks ? NOW YOU HAVE A BIG 5.5″ BRICK. Don’t forget that Galaxy S5 is only 5.2″, smaller than iPhone 6+.Ā Ha, you cant remember right !? Suddenly you cant remember. OK Let me help you then :
http://gizmodo.com/5847981/this-is-why-the-iphones-screen-will-always-be-35-inches

http://youtu.be/O99m7lebirE
(more…)

September 6, 2014

Send weekly reports of IPs logged into vsftpd

Filed under: linux — Tags: , , , — admin @ 10:25 am
root@X:[/etc/logrotate.d]: cat /etc/logrotate.d/vsftpd

/var/log/vsftpd.log
{
        create 640 root adm

        # ftpd doesn't handle SIGHUP properly
        missingok
        notifempty
        rotate 4
        weekly
        prerotate
                echo "<html><body><table>$(grep "OK LOGIN" /var/log/vsftpd.log | awk '{print $8" "$12'} | sort | uniq -c | awk '{print "<tr><td>"$2"</td><td>"$3"</td><td>"$1"</td></tr>"}')</table></body></html>" | mail -a "Content-type: text/html" -s 'FTP REPORT' mail@domain.com
        endscript
}

September 1, 2014

Filter out comments and empty lines from config files

Filed under: Bash,linux — Tags: , , , , , — admin @ 12:38 pm
egrep -v "^[[:blank:]]*(#|$)" filename

Send email alerts if Adaptec raid fails in Linux

Filed under: linux — Tags: , , , , — admin @ 10:56 am

For Adaptec Raid you need arcconf tool to check the raid status, you can install it based on the instructions provided on this link (For Debian) :
http://hwraid.le-vert.net/wiki/DebianPackages
After you have arcconf installed, create /usr/bin/raidcheck with following content and make it executable :

#!/bin/bash
RESULT=$(arcconf GETCONFIG 1 | grep Status | grep -v "Not Installed" | grep -v Optimal)
if [ -n "$RESULT" ]; then
    wget http://domain.com/notify.php?m=RAID_ERROR -O /dev/null
    else echo "Raid is OK"
fi

Note : In my script I have chosen to use a php script on another server to send the alert, this way I wont need to install a mail server on every server which I am monitoring. you can do the same or change the wget line to whatever you want.
Put the script in the cron to check the raid status every 12 hours :

0 */12 * * * /usr/bin/raidcheck

Disable ipv6 on Linux

Filed under: linux — Tags: , , — admin @ 10:17 am

To disable ipv6 on Linux, add following line to /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1

Now apply the change :

sysctl -p

Powered by WordPress