Category Archives: Ubuntu

Anything related to Ubuntu, yes, it’s zedomax’s OS of choice…

Web Server Hack – How to Use DDoS Deflate to Protect Against DoS Flooding!

I have been using DDoS Deflate, which is a simple script that will automatically help you against DoS attacks on your server.  Basically it works by killing any HTTPD processes/banning IPs that reach more than set number of TCP connections.

It’s a great script since it’s free, simple, and works well against DoS attacks.  Yes, forget paying that extra hundred dollars to your server company, who’s going to probably install this script anyways.

The real gem of the DDoS Deflate script lies in co

Click Here to Read Full Article

5 Comments

Web Server Hack – How To Auto Restart HTTPD service script!

Here’s a simple script I made up that will auto restart your HTTPD service if it reaches a high load.

The script will actually stop your HTTPD server when your load is higher than the maximum load settings and will re-start when the load is back to zero.

If you are on a server that’s overloaded, this script can help you “temporarily” get by instead of your web server dying and you manually rebooting your web server.

There’s also an extra “mail” feature that will email you whenever the server is stopped or restarted. (Code after

Click Here to Read Full Article

10 Comments

Linux Time – How to Set the Time and Date using Command Date!

linux-time

I just noticed that my web server’s time was ahead by 10 hours for some reasons.  If you run linux dedicated servers, you will want to know how to do this.  I know there’s many ways to do it but this is the simplest/fastest method.

Here’s a really simple way to set time and date on any linux/unix system:

date – Would list the date and time of the server. Below is an example of the output.

Thu Feb 8 16:47:32 MST 2001

date -s “11/20/2003 12:48:00” – Set the date to the date and time shown.

date ‘+DATE: %m/%d/

Click Here to Read Full Article

Leave a comment

Linux DIY – How to Create an SSH Tunnel and Share Internet Through Another Computer!

Well, I am in the process of creating a local tunnel connection between two of my web servers from MediaTemple (thanks Eric for the help btw), I stumbled across this cool Linux DIY that shows you how to create an SSH Tunnel between two linux computers and share the internet via proxy port number 2020.

This might be very useful if you happen to run a bunch of linux machines and run out of ethernet lines. (and you are not using WiFi)

To create a tunnel you need to check that ssh service is running on the computer that you want to connect. For Ubuntu or Debian based distribution

Click Here to Read Full Article

Leave a comment

Linux Hack – How to Batch Image Resize!

Well, one of the worst things you can encounter is to individually resize hundreds of images for a future blog post.

I am not sure if Windows or Macs have free software to do this but if you have access to a Linux computer like me, you can get stuff done much faster using Image Magick, a free open-source image auto-resizer also used on many web-platform programs.

I assuming that you have installed Ubuntu Gutsy:

sudo apt-get install imagemagick

After ImageMagick installation, you can use mo

Click Here to Read Full Article

2 Comments

Top 5 Geek’s Linux Distros!

Call me old school but I tend to like Fedora and Ubuntu for Linux distro of my choice but here’s a good list and explanation of the Top 5 geek’s linux distros.

Of course, now I might have to try them all out and see which one is actually the best.  My Ubuntu has been failing as of lately on my spare desktop, everything is SLOW!

Click Here to Read Full Article

Leave a comment

Linux Boot Hack – How to Password Protect GRUB!

If you are a linux user like me, you know the value of being able to password-protect your GRUB entries so even if your whole PC gets stolen, no one should be able to access your valuable, classified data. (or porn?)

When talking of security in computer systems one often needs to analyse the situation one is in and choose the appropriate options. If you have hackers getting physical access to your computer system the GRUB security measures won’t last a second (pretty much nothing would do). Your best bet in such a situation is to keep the hard dr

Click Here to Read Full Article

1 Comment

OLPC Hack – How to Run OLPC on any Laptop!

OLPC (One Laptop Per Child), can now be run on any computer via a USB flash drive.  If you wanted to get your child one of these OLPCs, you no longer have to buy an OLPC.  Just get a used laptop for 50 bucks then simply stick one of these Sugar on Stick USB flash devices that will run OLPC operating system.

There are two versions of Sugar on a Stick available at the moment. One is based on Fedora 10, whil

Click Here to Read Full Article

Leave a comment

Wii Hack – How to Make Wii Remote work in Ubuntu!

Here’s a cool Wii hack that some of you Ubuntu hackers might want to do, how to make Wiimote work in Ubuntu.  As a Ubuntu user myself, this could come handy if you are thinking of making your own Ubuntu/Wiimote multi-touch device.

Open up a terminal (Applications –> Accessories –> Terminal) and enter the following command

sudo aptitude install wminput wmgui lswm

Next, we need to find the bluetooth device address of your Wii remote, this will allow you to connect to

Click Here to Read Full Article

Leave a comment

Ubuntu Hack – How To VPN from Ubuntu 8.10!

Here’s a little Ubuntu hack that might help you VPN on a Ubuntu 8.10:

I started off by clicking on the network icon on the top-right of the menu bar and then Configure VPN (under VPN Connections). The VPN tab had the Add button disabled so I went to the command prompt (Application, Accessories, Terminal) and typed the following command: sudo apt-get -y install network-manager-pptp

I then entered my password (for the sudo), after which it downloads and installs PPTP support.

Click Here to Read Full Article

Leave a comment