Oct 20







Connecting to a Cisco Router or Switch with a Mac or a Macbook Pro is not quite as straight forward as it is on a Windows PC. Mac’s don’t have serial ports and sometimes finding a USB to Serial adapter with Mac Drivers can prove difficult. This tutorial will show you how to connect just about any USB to Serial adapter to a Mac using a very generic driver and then how to start a session to your Cisco device by just using the Terminal app.

This tutorial assumes that you already have some kind of USB to serial adapter.

1.) Download the Prolific Technology Driver for USB to Serial adapters for Mac: md_PL2303_MacOSX10.6_dmg_v1.4.0.zip
2.) Install the Prolific Technology Driver and then Reboot your Mac.
3.) Plug the USB to Serial Adapter into any USB port on your Mac.
4.) Open “System Profiler” located in /Applications/Utilities.
5.) In “System Profiler“, under USB-Serial Controller, you should see your device. Click on it.
6.) You should now see Product ID and Version ID. These id’s will be listed in Hex and you will have to convert it to decimal using a calculator or an online converter.
7.) Open up the following file by typing this command into Terminal: sudo vi /System/Library/Extensions/ProlificUsbSerial.kext/Contents/Info.plist
8.) You should see something similar to the following:

idProduct
8963
idVendor
1659


9.) Make sure that the converted decimal value of your Product ID and Version ID in System Profiler match the values in Info.plist.
10.) Save your changes by type ESC :wq!.
11.) Unplug your USB to Serial Adapter.
12.) Type the following command into the Terminal App: sudo kextload /System/Library/Extensions/ProlificUsbSerial.kext
13.) Plug the USB to Serial Adapter into any USB port on your Mac.
14.) Open up “System Preferences” and go into the “Network” options and verify that your Mac lists your new USB to Serial Controller.
15.) Type the following command into the Terminal App to verify that your device is indeed installed on your system: ls /dev/tty.usbserial
16.) You should now be able to type the following command into the Terminal App to start a connection to your Cisco Device: screen /dev/tty.usbserial 9600

You should now see something like this on your terminal screen after you press return a few times:

Switch>

Oct 18







So you have either forgotten your Mac User’s password or you need to change an existing user’s password without knowing the original password. You have come to the right place. In my case, I was working on a friends Macbook for them and they left it with me to work on and they forgot to give me the password so that I could login and fix the issues. I could have waited until I could reach them to get the password but then I started thinking….If I ask them for the password, then they are going to think I don’t know what I’m doing, especially if I have to ask/beg them for the password…..Or I could just reset it and let them wonder with amazement at how I gained access to their system so quickly.

This tutorial assumes that the Mac User in question probably didn’t password protect their firmware (Which is the default out-of-the-box option).

1.) Power on the Mac in question.
2.) Immediately after you power on the Mac, before you hear the initial mac boot sound, Press and hold the “Command” + “s” keys until the Mac boots into a command prompt.
3.) Once you get a root prompt type the following commands:
mount -uw /
passwd username
4.) You will now be asked to enter in a new password for your user. Enter your new password.
5.) Now just type “reboot” and press return.
6.) You should now be able to login with the password that you just typed in.

Tagged with:
Jul 06







Have you lost your Mac OS X Server Installation Serial Number? If you have lost the OS X Server Installation serial number or have a Mac OS X Server and you need to reinstall it, but you don’t know what the installation serial number is, just follow these quick and easy instructions to retrieve it from your Mac OS X Server:

1.) Open Terminal and type the following command: sudo /System/Library/ServerSetup/serverserialnumberutil -get
2.) Press <Return> or <enter>.
3.) You should see something that looks like the following:

XSVR-000-R-XXX-XXX-XXX-XXX-XXX-XXX-X|username|company name

That’s it, you should now have the serial you either lost or never knew.

May 23








This step-by-step tutorial will show you how to jailbreak your iPhone 3GS on Mac OS X in less than 10 minutes. Just follow the steps below:

1.) Download the following software to your “~/Downloads” directory:

RedSn0w

iPhone 3GS ipsw

2.) Click your cursor on the Desktop to bring up the “Finder” menu, and go to “Go” -> “Utilities” -> “Terminal“.

3.) Type the following commands into “Terminal“: mkdir ~/Desktop/redsn0w;mv ~/Downloads/redsn0w.zip ~/Desktop/redsn0w/;mv ~/Downloads/iPhone2,1_4.2.1_8C148a_Restore.ipsw ~/Desktop/redsn0w/;cd ~/Desktop/redsn0w;unzip redsn0w.zip

4.) Now using “Finder“, open up the ~/Desktop/redsn0w directory and double-click on the redsn0w.app application.

5.) Once you have opened the redsn0w.app application, you should now see the redsn0w 0.9.6b4! application window. From here you will need to click on Browse and select the file ~/Desktop/redsn0w/iPhone2,1_4.2.1_8C148a_Restore.ipsw and hit next.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.) You should now see the following screen:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7.) Now you will need to select “Install Cydia” and hit next and follow the on-screen instructions. Also once this process has finished you will need to perform steps 5 through 6 again and when you get to step 7, select “Just boot tethered right now“. Again, you will need to follow the on-screen instructions and this time your iPhone 3GS will be booted up in tethered mode and you will have access to cydia and your iPhone 3GS will have been successfully jailbroken.

###VERY IMPORTANT### Every time you need to reboot or boot up your iPhone 3GS, you will need to peform step 7 and use redsn0w.app to “Just boot tethered mode“. Your iPhone 3GS will be able to go to sleep or be re-sprung without having to be booted up using redsn0w.app, but every time you need to perform a hard reboot of the device, you will need to use redsn0w.app to boot it up.###VERY IMPORTANT###

###DISCLAIMER: I have tested this procedure with iPhone 3GS running iOS 4.2.1 only. I have done this several times and I have never run into any problems and I have never bricked an iPhone. However, if you use this tutorial, you are using it at your own risk. ###DISCLAIMER###

May 06









This tutorial will show you how to customize your Mac OS X Dock. You will learn how to change your Dock from 3D to 2D. You will also learn how to add empty spaces to your Dock and how to increase the actual size of your Dock past the default size allowed by System Preferences. Just follow the simple steps below and in no time you will be able to customize your Mac Dock as well:

CHANGE YOUR DOCK FROM 3D to 2D

1.) Click on the Desktop to bring Finder to the Mac menu bar, Click on “Go” -> “Utilities” -> “Terminal“.
2.) In Terminal type the following command to change the Dock from 3D to 2D: defaults write com.apple.dock no-glass -boolean YES
NOTE: To change the Dock from 2D back to 3D: defaults write com.apple.dock no-glass -boolean NO
3.) After you have entered the previous command you will need to type the following command into Terminal to make the Dock changes take effect: killall Dock

 

INCREASE THE SIZE OF YOUR DOCK ABOVE THE SYSTEM PREFERENCES MAXIMUM ALLOWED

1.) Click on the Desktop to bring Finder to the Mac menu bar, Click on “Go” -> “Utilities” -> “Terminal“.
2.) In Terminal type the following command to increase the Dock size: defaults write com.apple.dock tilesize -int 256
NOTE: To decrease the Dock size back to the normal range just click on the apple in the mac menu bar and then on “System Preferences” -> “Dock” and use the slider.
3.) After you have entered the previous command you will need to type the following command into Terminal to make the Dock changes take effect: killall Dock

 

INCREASE THE MAGNIFICATION OF YOUR DOCK ICONS ABOVE THE SYSTEM PREFERENCES MAXIMUM ALLOWED

1.) Click on the Desktop to bring Finder to the Mac menu bar, Click on “Go” -> “Utilities” -> “Terminal“.
2.) In Terminal type the following command to increase the Dock size: defaults write com.apple.dock largesize -int 512
NOTE: To decrease the Dock Icon Magnification size back to the normal range just click on the apple in the mac menu bar and then on “System Preferences” -> “Dock” and use the slider.
3.) After you have entered the previous command you will need to type the following command into Terminal to make the Dock changes take effect: killall Dock

ADD EMPTY SPACES TO YOUR DOCK

1.) Click on the Desktop to bring Finder to the Mac menu bar, Click on “Go” -> “Utilities” -> “Terminal“.
2.) In Terminal type the following command to add an empty space to the Dock: defaults write com.apple.dock persistent-apps -array-add ‘{ “tile-type” = “spacer-tile”; }’
NOTE: To delete the empty space holder in the Dock just click on the empty space and pull it up off the Dock and it will be trashed.
3.) After you have entered the previous command you will need to type the following command into Terminal to make the Dock changes take effect: killall Dock

Tagged with:
Mar 14








This step-by-step tutorial will show you how to jailbreak your iPad on Mac OS X in less than 10 minutes. Just follow the steps below:

1.) Download the following software to your “~/Downloads” directory:

RedSn0w

iPad ipsw

2.) Click your cursor on the Desktop to bring up the “Finder” menu, and go to “Go” -> “Utilities” -> “Terminal“.

3.) Type the following commands into “Terminal“: mkdir ~/Desktop/redsn0w;mv ~/Downloads/redsn0w.zip ~/Desktop/redsn0w/;mv ~/Downloads/iPad1,1_4.2.1_8C148_Restore.ipsw ~/Desktop/redsn0w/;cd ~/Desktop/redsn0w;unzip redsn0w.zip

4.) Now using “Finder“, open up the ~/Desktop/redsn0w directory and double-click on the redsn0w.app application.

5.) Once you have opened the redsn0w.app application, you should now see the redsn0w 0.9.6b4! application window. From here you will need to click on Browse and select the file ~/Desktop/redsn0w/iPad1,1_4.2.1_8C148_Restore.ipsw and hit next.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.) You should now see the following screen:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7.) Now you will need to select “Install Cydia” and hit next and follow the on-screen instructions. Also once this process has finished you will need to perform steps 5 through 6 again and when you get to step 7, select “Just boot tethered right now“. Again, you will need to follow the on-screen instructions and this time your iPad will be booted up in tethered mode and you will have access to cydia and your iPad will have been successfully jailbroken.

###VERY IMPORTANT### Every time you need to reboot or boot up your iPad, you will need to peform step 7 and use redsn0w.app to “Just boot tethered mode“. Your iPad will be able to go to sleep or be re-sprung without having to be booted up using redsn0w.app, but every time you need to perform a hard reboot of the device, you will need to use redsn0w.app to boot it up.###VERY IMPORTANT###

###DISCLAIMER: I have tested this procedure with iPad running iOS 4.2.1 only. I have done this several times and I have never run into any problems and I have never bricked an iPad. However, if you use this tutorial, you are using it at your own risk. ###DISCLAIMER###

Mar 11








This step-by-step tutorial will show you how to jailbreak your iPhone 4 on Mac OS X in less than 10 minutes. Just follow the steps below:

1.) Download the following software to your “~/Downloads” directory:

RedSn0w

iPhone 4 ipsw

2.) Click your cursor on the Desktop to bring up the “Finder” menu, and go to “Go” -> “Utilities” -> “Terminal“.

3.) Type the following commands into “Terminal“: mkdir ~/Desktop/redsn0w;mv ~/Downloads/redsn0w.zip ~/Desktop/redsn0w/;mv ~/Downloads/iPhone3,1_4.2.1_8C148_Restore.ipsw ~/Desktop/redsn0w/;cd ~/Desktop/redsn0w;unzip redsn0w.zip

4.) Now using “Finder“, open up the ~/Desktop/redsn0w directory and double-click on the redsn0w.app application.

5.) Once you have opened the redsn0w.app application, you should now see the redsn0w 0.9.6b4! application window. From here you will need to click on Browse and select the file ~/Desktop/redsn0w/iPhone3,1_4.2.1_8C148_Restore.ipsw and hit next.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.) You should now see the following screen:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7.) Now you will need to select “Install Cydia” and hit next and follow the on-screen instructions. Also once this process has finished you will need to perform steps 5 through 6 again and when you get to step 7, select “Just boot tethered right now“. Again, you will need to follow the on-screen instructions and this time your iPhone 4 will be booted up in tethered mode and you will have access to cydia and your iPhone 4 will have been successfully jailbroken.

###VERY IMPORTANT### Every time you need to reboot or boot up your iPhone 4, you will need to peform step 7 and use redsn0w.app to “Just boot tethered mode“. Your iPhone 4 will be able to go to sleep or be re-sprung without having to be booted up using redsn0w.app, but every time you need to perform a hard reboot of the device, you will need to use redsn0w.app to boot it up.###VERY IMPORTANT###

###DISCLAIMER: I have tested this procedure with iPhone 4 running iOS 4.2.1 only. I have done this several times and I have never run into any problems and I have never bricked an iPhone. However, if you use this tutorial, you are using it at your own risk. ###DISCLAIMER###

Mar 11








Whether you’re a Unix or Linux guru or an IT Administrator or maybe even a software programmer, there are always going to be times when you would like to be able to access files and directories that are normally just plain out of reach on Mac OS X through the GUI. And for me, I have always wanted to be able to attach log files into my emails through apple mail. Mac OS X is one of the few Unix like systems that actually hides these hidden files and root directories. No more, we are now going to uncover everything that Apple has been hiding from you in Mac OS X. This is also very helpful if you need to restore hidden files using Time Machine backups. Just follow these simple steps and you to will be able to see everything through finder:

1.) Click on the Desktop to bring up the Finder menu, and go to “Go” -> “Utilities” -> “Terminal“.
2.) Once you have your Terminal up, type in the following command and press return: defaults write com.apple.Finder AppleShowAllFiles YES
3.) Before you will be able to see the hidden files using the GUI, you will need to run the following command in Terminal to restart Finder: kill -hup `ps -ef | grep Finder | grep -v grep | awk ‘{print $2}’`

Listed below is a screenshot of Terminal running the previous commands:

Now that you can see all of your hidden files by using the GUI and Finder, you can now use Time Machine to restore hidden files.

If you decide you really don’t like being able to see all of Mac OS X’s hidden files or you have used this procedure just to restore hidden files using Time Machine, then you can follow the steps below to turn this feature off:

1.) Click on the Desktop to bring up the Finder menu, and go to “Go” -> “Utilities” -> “Terminal“.
2.) Once you have your Terminal up, type in the following command and press return: defaults write com.apple.Finder AppleShowAllFiles NO
3.) Before the hidden files will become hidden again using the GUI, you will need to run the following command in Terminal to restart Finder: kill -HUP `ps -ef | grep Finder | grep -v grep | cut -d ” ” -f5`

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).

Sep 22

This post is very useful if you have ever needed to make a readonly mac .dmg file writable. Say for instance that you wanted to create a Mac OS X install disk, then mount it up writable, add something to it and then save it to be used to install OS X in say “VMware”. Listed below are the steps to make this happen:

From Terminal:
###This creates a writable dmg image###
hdiutil convert nameoffile.dmg -format UDRW -o nameoffile_writable.dmg

###This tells you the size of the image###
hdiutil resize -limits nameoffile_writable.dmg

###This resizes your dmg image so that you will have space to add stuff to it. Make sure you substitute the first number from the previous command and add to it sufficiently for the 9999etc. number###
hdiutil resize -sectors 999999 nameoffile_writable.dmg

###This mounts the new dmg writable image so that you can add stuff to it###
hdiutil attach nameoffile_writable.dmg






preload preload preload