Bookmark, share, and hop your favorite sites with SiteHoppin Toolbar for Firefox!



Linux Server Hack - How to setup a Shell Script to Auto Restart Apache Httpd Server!

Posted in Blog, Cool, HOWTO, Hack, Web, Wordpress by max on the July 28th, 2008 at 1:21 pm

Well, I have been struggling with one of my dedicated servers and just found this cool script that will auto-restart the Apache httpd server if it goes out.

Save the following as restart.sh:

#!/bin/bash
# Apache Process Monitor
# Restart Apache Web Server When It Goes Down
# ————————————————————————-
# Copyright (c) 2003 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# ————————————————————————-
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# ————————————————————————-
# RHEL / CentOS / Fedora Linux restart command
RESTART=“/sbin/service httpd restart”

# uncomment if you are using Debian / Ubuntu Linux
#RESTART=“/etc/init.d/apache2 restart”

#path to pgrep command
PGREP=“/usr/bin/pgrep”

# Httpd daemon name,
# Under RHEL/CentOS/Fedora it is httpd
# Under Debian 4.x it is apache2
HTTPD=“httpd”

# find httpd pid
$PGREP ${HTTPD}

if [ $? -ne 0 ] # if apache not running
then
 # restart apache
 $RESTART
fi

Then setup a cron job like this: (usually in your sa-update file under /etc/cron.d)

*/5 * * * * root /root/restart.sh  >/dev/null 2>&1

via cyberciti

There’s also a program called Monit that will do more automation.

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


DIY - How to Make your own Lunchbox Linux Firewall!

Posted in Computer, Consumer, Cool, DoItYourself!, Educational, Gadgets, HOWTO, Linux, Projects by max on the June 26th, 2008 at 10:19 pm

DIY - How to Make your own Lunchbox Linux Firewall!

As an avid fan of Linux operating systems ever since I took Minix class, which Linux was born from, I love to hear about cool little DIYs on making a Linux firewall out of a lunch box.

The greatest thing about Linux operating systems in comparison to Windows or any other operating systems is that it can be easily custom tailored to do one thing whether that’s a web server, firewall, file server, or any type of server that requires stability at “no cost”.

This simple DIY shows us the things that are possible with open source and free software.

Heck, you could probably make a lot of money putting these Lunchbox Linux firewall boxes to production as they are as good as an over-priced Cisco router.

It’s a plastic Thermos brand Hot Wheels lunchbox circa 2007. Black plastic, white handle, but no Thermos inside. As soon as I saw it, I knew it would become a computer case, so I bought it, brought it home, and started digging in the parts box. Grabbed one of my Via C3 embedded 3.5″ boards, a cheap 4GB compact flash card, a small 5V, 8A power supply, and my exacto knife and files.

via technabob

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...


2GB MP3 Watch with FM Transmitter!

Posted in Audio, Consumer, Cool, Design, Entertainment, Gadgets, Music, Watches, mp3 by max on the June 23rd, 2008 at 6:15 pm

2GB MP3 Watch with FM Transmitter!

Here’s an awesome watch that lets you listen to MP3s AND transmit the MP3 songs or your recordings via FM station. Now, here’s a watch you can use as portable MP3 for your car OR you can even use it as emergency FM transmit device. How cool is that?

Features:

  • Memory: 2GB
  • Music Format: MP3, WMA, WAV
  • FM Transmitter
  • 5 EQ Modes
  • Waterproof up to 3 Meters with Earphone Jack and MIC hole closed
  • Built in MIC
  • Earphone Jack: 2.5mm
  • USB: 2.0
  • System: Windows 98/ME/2000/XP/2003/Vista, Mac 8.6/OSX, Linux 2.4.X or above
  • Power Source: Built-in rechargeable Li-ion battery
  • Dimension: 46×46×19m

via geekalerts

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Comments Off

Pizza Hack - How to Order Dominos Pizza via Linux/Unix Command Line…why?

Posted in Consumer, Cool, Entertainment, Food, HOWTO, Hack by max on the June 9th, 2008 at 12:22 pm
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Xbox HACK - How to Run Xbox Media Center from a USB Drive!

Posted in Consumer, Cool, DoItYourself!, Entertainment, Gadgets, Games, HOWTO, Hack, USB by max on the June 6th, 2008 at 1:46 pm
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Top 10 Reasons Why Linux will be on every PC in 10 Years!

Posted in Computer, Consumer, Cool, Gadgets, Linux by max on the June 5th, 2008 at 3:09 pm

1. Linux is free, open-source platform operating system that’s being developed by engineers all over the world.

2. Linux is not 1 operating system, there are hundreds of different Linux systems including embedded Linux.

3. Google is supporting embedded Linux for mobile phones with its Android platform with thousands of app builders.

4. In 5 years, all desktop applications will be available online, there will be no need to use Microsoft Outlook, Word, or any of that shit.

5. Linux is already taking near 50% market of mini-notebooks, netbooks, whatever.

6. Linux is now picking up more pace with major manufacturers such as Samsung, Asus, etc…etc…

7. Linux is unlimited, Windows is limited to EXE files.

8. Over 50% of web servers in the world already run Linux, proving the stability of the operating system.

9. Linux is about freedom, Windows is about Money.

10. Mac already runs an operating system similar to Linux, based on a unix-like structure.

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Asus Eee Sticks like Wii Nunchucks?

Posted in Computer, Consumer, Cool, Design, Gadgets by max on the June 1st, 2008 at 5:14 am
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


This Week Laptop Pimp WrapUp!

Posted in Computer, Laptop by max on the May 31st, 2008 at 7:33 pm
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Linux Server Hacks - How to increase Plesk Q-mail Maximum E-mail Attachment size of 2MB!

Posted in Computer, DoItYourself!, HOWTO, Linux by max on the May 28th, 2008 at 12:37 am

Well, recently I had one of my clients that I host their e-mail system on my web server ask me if they can send more than 2MB for their e-mail attachments.

To do this on a Plesk system, you need to create a new file for the Q-mail.

Plesk defaults to 2MB for e-mail attachments.

Goto this directory:

/var/qmail/control

make a file called “databytes” and store the max number of bytes allowed.

For example, “4000000″ would be max 4MB attachments.

via zwiki

, , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...


Asus Eee Linux Box!

Posted in Computer, Consumer, Cool, Gadgets, Laptop by max on the May 26th, 2008 at 10:11 pm

 Asus Eee Linux Box!

Asus is working on their new Linux box that looks like wii.

* As per our previous speculation, an official launch of the Eee Box will indeed take place on June 3rd at Computex in Taiwan. Hardly surprising given the show is in Taiwan, the home of Asus and many a computing manufacturer.
* Specs wise, our source told us the machines would be launching with 2GB RAM as standard, along with a 160GB hard drive - obviously not an SSD.
* These new machines will be running the same Linux distro found on the Eee PCs - no bad thing by our reckoning.
* It’ll be launching in the UK in Q3 and be available and be available in white, though no word was made as to the availability of the proposed black version.
* Finally, and somewhat disappointingly, our source couldn’t confirm whether these early systems would in fact be using the Centrino Atom platform adding: “I honestly don’t know at this point”. In any case, with other vendors beginning to announce Atom powered machines, the odds are overwhelmingly stacked in Atom’s favour on this one.

via laptoppimp

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...