Tricks and Tips about Systems/Network

April 13, 2010

How do I add route on Mac OS or Disable internet on MaC for testing offline application

Filed under: admins,Hacks,MacOS — Liju Mathew @ 7:30 pm

I have created two scripts which is added on sudo list. One is for removing default gateway and another one is adding the gateway.

1. # vi en_web.sh and add the following line
/sbin/route add -net 0.0.0.0/0 192.168.0.9
2. vi dis_web.sh and add the following lines
/sbin/route delete -net 0.0.0.0/0

3. Add the sudo entry for the user
# visudo , add the lines,save and quit

# Sys-admin added the following lines
User_Alias DEVTEAM = jomon
Cmnd_Alias USERCMD = /Users/jomon/en_web.sh, /Users/jomon/dis_web.sh
DEVTEAM ALL = NOPASSWD : USERCMD

rc-140:~ jomon$ sudo /Users/jomon/dis_web.sh
delete net 0.0.0.0
rc-140:~ jomon$ ping google.com
PING google.com (209.85.231.104): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
— google.com ping statistics —
4 packets transmitted, 0 packets received, 100% packet loss
rc-140:~ jomon$ sudo /Users/jomon/en_web.sh
add net 0.0.0.0: gateway 192.168.0.9
rc-140:~ jomon$ ping google.com
PING google.com (209.85.231.104): 56 data bytes
64 bytes from 209.85.231.104: icmp_seq=0 ttl=55 time=305.435 ms
64 bytes from 209.85.231.104: icmp_seq=1 ttl=55 time=86.583 ms
^C
— google.com ping statistics —
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 86.583/196.009/305.435/109.426 ms

-njoy

October 29, 2009

How do I restore the MAC image over the network

Filed under: admins,MacOS — Liju Mathew @ 11:20 pm

How to restore the MAC images over the network.

I also able did image backup and have sucess in resoreing it over teh network
Ans.
a. Boot from ‘iDeneb’ DVD and create a drive image and stored on other volume.
b. Boot in normal mode and copied the image file to a web location. Like we can access the file over the http ( htp://10.10.0.20/Mac-OS.dmg).
c. Boot again from the “iDeneb” DVD and go the the screen showing where to install.
d. Find the terminal from the Menu and set the ip address.
#ifconfig en0 10.10.0.254 255.255.255.0
e. Choose disk utilities and choose which disk to be restored. Set the source path as the same ulr where the image file copied (htp://10.10.0.20/Mac-OS.dmg)
f. Drag the restore disk on the destination text box and click restore

That’s it

Your image has been restored now.
Good luck.

How to install MAC On intel/AMD desktop

Filed under: admins,Linux,MacOS — Liju Mathew @ 10:57 pm

Yesterday I got a DVD from “Hackintosh MAC”(http://ihackintosh.org/ideneb) and I start to install on the Intel desktop. I called my friends to get a how to install and got some helpful tips :-) thankfully.

At last installation process starts and I see the “Mac startup screen and after that it hangs.

Worried..??? remembered the friends talking.. Even though I was pressed the F8 key, I has seen a ” hd0 (256, Ethernet PXE adapter). Showing it’s pretty incorrect and tried many times.. got sad again.. Do I did anything wrong ?

Yes.. I did.. as I am installing it on a good configuration( Core2 due,Inter DG31pr,2GB RAM) system and also

    pressed the F8 before the black boot window screen appears which cause to get boot from other medium ‘Not CD”.

Tips is ” Don’t press the F8 key until Mac Dos ( black screen ) window appears which show press F8 key to install on adavanced mode. Then I got another window which asking boot prompt.

At this boot prompt,
I typed “cpu=1, maxmem=2048 -v then press enter.

Great!!! I am starting to view a booting process .. Lol..
Simply I get in and find few pop up window asking to choose ” your county and keyboard type etc etc..” Hopefully clicked and eager to finish it at the earliest. That again ” when I get a window ” Where to install showing an “empty list on it” and I can’t forward after that :-( … I have had a windows partition on the same HDD before.

After quick browsing over the menu on mac installer I found a Disk utilities application from the menu bar.
a. Erase the Disk
b. Create a new Volume ( partition in our words) choose the file system ” Mac OS journeled”
c. Exit and forward the Window where I stuck at ” Where to Install ” . Now it’s shown. Great !! That newly created volumes has identified the OS installer and I feel really good to go.

Installation just take 30 minutes and required a reboot.

Done!!!! You have a Mac Desktop. Let’s play with it cheaper :-D .

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.