Simple Linux firewall script.

Firewalls are a critical component of keeping your machine safe on the Internet.

This tutorial will show you how to create firewall rules from the command line.

Details of the script actions are commented in the script.

Read the rest of this entry »

How to reconfigure your display on Linux the easy way!

Believe it or not, sometimes the display will die on your Linux operating system. You probably have no control over this…..Time to move on and fix the issue without spending hours on Google searching for a half-baked how-to.

If you are in the process of implementing this article on a broken system, chances are that you see a black screen with text. Please follow these steps so that you can get the pretty colors back!

Step 1: Login.

Step 2: Ensure the graphical daemons are not running.

service gdm stop

service kdm stop

Step 3: Run this command:   X -configure

(This will create the following file in your directory: xorg.conf.new)

Step 4: Copy the configuration file to the right place.

mv xorg.conf.new /etc/X11/xorg.conf

Step 5: Restart the display.

service gdm start (for GNOME users.)

or

service kdm start (for KDE users)

or

startx (for everyone else, the elite)

Step 6: If you are still having problems……

Repeat Steps 1 – 4.

We will change the driver to vesa. Vesa is a generic display driver that will work on any video card. I usually use this driver on all my machines because it is stable and never fails.

Use your favorite text editor and open /etc/X11/xorg.conf

Look for a line that says  something like the following :

Driver      “nv”

Driver      “ati”

Driver      “nvidia”

Driver      “intel”
Change the name from what is in quotes to “vesa”.

Example of how it should be after the change:  Driver      “vea”

Save and exit the file and follow step 5.

Tips for using solid state drives on Linux.

This website runs a web server with a 4GB CF card in a very very small computer. I was trying to come up with ways to reduce writes on this device and I remembered UnionFS. UnionFS can take 1 folder and make it read-only and have all the changes written to another folder. To the user, everything will look the same. This is very good when adding a disk to a computer and your not using LVM.

What I want to do? I want  /tmp,  /var/log, /var/home, and /root to have the changes written to my USB device that is mounted as  /mnt. These directories receive a lot of writes to them.

I copied the following commands to /etc/rc.local so that they are executed when the machine boots:

—————–

mount -t unionfs -o dirs=/mnt/logs=rw:/var/log=ro unionfs /var/log
mount -t unionfs -o dirs=/mnt/filesystem/root=rw:/root=ro unionfs /root
mount -t unionfs -o dirs=/mnt/filesystem/home=rw:/home=ro unionfs /home
mount -t unionfs -o dirs=/mnt/filesystem/tmp=rw:/tmp=ro unionfs /tmp

—————–

Lets make sure everything worked by doing `df -h`:

—————–

/dev/sda1             3.8G  1.6G  2.1G  44% /
unionfs               7.5G  3.3G  3.8G  47% /var/log
unionfs               7.5G  3.3G  3.8G  47% /root
unionfs               7.5G  3.3G  3.8G  47% /home
unionfs               7.5G  3.3G  3.8G  47% /tmp
-----------------
If you want this to be mounted at boot time without
using /etc/rc.local, simply add the following to /etc/fstab:
-----------------
unionfs /tmp unionfs dirs=/mnt/filesystem/tmp=rw:/tmp=ro 0 0
unionfs /home unionfs dirs=/mnt/filesystem/home=rw:/tmp=ro 0 0
unionfs /var/log unionfs dirs=/mnt/logs=rw:/var/log=ro 0 0
unionfs /root unionfs dirs=/mnt/filesystem/root=rw:/tmp=ro 0 0
-----------------
Now all the changes will be written to my USB device and my main CF
cards will not be written to a lot.

Server moved to Ubuntu Server 9.04

Server moved to Ubuntu Server 9.04 from Fedora 10.

Workers outsource their own jobs!


More American Workers Outsourcing Own Jobs Overseas

Today is the greatest…..

It was so nice to finally see my daughter after a month of not living wither her. I am trying to pay off my divorce lawyer so she is living with my mother. She will be back next month and it will be awesome! Even though I lost the women I loved for the past 4 years, I  got the greatest thing in the world, my daughter. I have no regrets.

Like Chris Rock says:

“Sometimes I am walking with my daughter, I’m talking to my daughter, I’m looking at her, I’m pushing her in the stroller. And sometimes I pick her up and I just stare at her and I realize my only job in life is to keep her off the pole.

“Keep my baby off the pole!

1240251334031

This is the day that I blog?

Last night was amazing. Instead of staying at home doing nothing, a girl added me to her Myspace account out of the blue and I decided to talk to her. We talked on the phone for a few minutes and then I said, “Hey, lets do something spontaneous and get some coffee in”. We met at a local coffee shop and she was the most beautiful girl that I have seen in a long time. I have not been lucky lately with the dating scene. After the coffee shop, we walked around down town Walnut Creek and got to know each other. Although the night ended early, I am glad that it happened. However, I do not think it will work out because she travels alot and is very successful at only 20 years old. Who really wants a scrub like me? In the end, my focus is on my daughter and education. I used to be a horn-ball but all that changed recently. If love and relationships happen, it will be nice. However, I will not chase it any more. I decided to increase the value in me and let me  follow myself.

“In the end, you are exactly–what you are. Put on a wig with a million curls, put the highest heeled boots on your feet, yet you remain in the end just what you are.” – Mephistopheles.

Mephisto Backup v1.4 released!

Mephisto Backup v1.4 released!

Mephisto Backup v1.4 in development?

mephisto14

Mephisto Backup v1.4 is currently release ready. Feel free to download it now. I am thinking about new features to add soon.

Features so far:

1) Re-designed Main menu.

2) Bug fixes.

Requested features:

1) More distro support.

Where to downloada the beta?

http://rusher.webhop.org/Projects

Mephisto Backup 1.3 released.

Mephisto Backup 1.3 released.