After typing a sudo command on terminal how do you save it so you dont have to keep giving that same command every time I restart my mac??

I have a 45mb/s internet at home and my youtube videos load extremely slow, after reading many blogs and empting my cache cleaning my history I stumble across a post that told me i had to block two IP's on the terminal using this two commands: " sudo ipfw add reject src-ip 173.194.55.0/24 in" and "sudo ipfw add reject src-ip 206.111.0.0/16 in" that it should help. After I did that and restarted the mac those commads are undone. Is there a way to save thos commands tipped in the terminal??

Open the AppleScript Editor in the /Applications/Utilities/ folder and paste in the following:
set thepass to text returned of (display dialog "Your administrator password is needed." default answer "" buttons {"Cancel", "OK"} default button "OK")
do shell script "ipfw add reject src-ip 173.194.55.0/24 in" password thepass with administrator privileges
do shell script "ipfw add reject src-ip 206.111.0.0/16 in" password thepass with administrator privileges
Save it as an application and add it to the list of login items for your user account in the Users & Groups pane of System Preferences.
(81466)

Similar Messages

  • If you dont have the sim card that came with the iphone and you resync it how do you get it to turn back on .?

    if you dont have the sim card that came with the iphone and you resync it how do you get it to turn back on .?

    You have been syncing the iPhone with iTunes on your computer without a SIM card inserted in the iPhone for how long?
    If the iPhone says connect to computer, this means there is a problem with your iPhone that requires restoring the iPhone with iTunes. As already provided, not having a SIM card inserted in an iPhone does not prevent or shouldn't prevent syncing the iPhone with iTunes. Depending on the iPhone model, it is required in order to restore the iPhone with iTunes.
    http://support.apple.com/kb/ht3406
    To re-activate an iPhone 3G or iPhone 3GS that displays the "Connect to iTunes" screen:
    Insert a SIM card from the carrier with which you used your phone. Note: If you are using the same carrier, you can use the activated SIM card from your new device to do this. If your device is unlocked by your carrier, you can use any SIM card.
    Connect the iPhone 3G or iPhone 3GS to iTunes on a computer connected to the Internet.
    iTunes will then activate the device. You can remove the SIM card at this point and use the iPhone as if it were an iPod touch.

  • Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac

    Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac?

    One thing to check:  when shutting down or restarting, there is a checkbox in the shutdown/restart dialog which asks whether you want currently open applications to open at startup.
    charlie

  • How do I delete a photo from my desktop which keeps showing the following info. every time I try to move it to the trash?:  "DSC_0073.JPG" can't be opened right now because it's being used by another task, such as moving or copying an item or emptying the

    I dragged a copy of a photo onto my desktop from iPhoto, and it seems to be in some state of process/activity (vs. just being a copy of a photo on my desktop).  I tried to delete/move to trash the photo, and I keep getting the following message:  “DSC_0073.JPG” can’t be opened right now because it’s being used by another task, such as moving or copying an item or emptying the Trash. Try again when the current task is complete.
    How do I delete this photo from my desktop?
    Thanks!

    I ended up shutting down my system, and when I started it back up, I was able to drag the photo to the trash and delete it (I did get a message warning that my deleting the photo might negatively affect the application that was "using" it, but I deleted it anyway...it worked...and I'm hoping I didn't adversely affect another application!).
    Thanks so much for your help!

  • How can I get rid of this that shows up every time I start my Mac?

    “/Library/StartupItems/AdobeVersionCue” has not been started because it does not have the proper security settings.
    It started to show up when moving from CS4 and up. I am currently a Creative Cloud user
    Thanks

    Hi RicardoGonzalez,
    Welcome to Adobe Forums.
    Please open the finder window click on "go" and choose "computer".
    Navigate to MacHD/Library/Startupitems and send AdobeVersionCue to Desktop or some other location on the hard drive.
    Then try to launch your application and check if the issue persists.
    Thanks

  • I have a white screen that pops up every time my 3gs Sleeps, I have reset it, restored it, etc.. Any suggestions on how to fix this? when it isn't showing a white screen it seems to be fine, so frustrating

    I have tried almost everything and I still have a white screen that pops up

    Reset to factory settings if that doesn't work, take it in to the Apple store.

  • Have 18g of other on 3gs after ios5 update. what is this and how do you get rid of it?

    have 18g of other on 3gs after ios5 update. what is this and how do you get rid of it?

    \Based on other forum users' posts, it seems like all you need to do is Restore the phone from your latest backup, and that should "refresh" your phone's appraisal of its data storage.

  • I get an events summary pop up every time i open my mac after its asleep. how do i turn it off?

    i get an events summary pop up every time i open my mac after its asleep. how do i turn it off?

    I don't recognize this pop up.  What are the options in the gear dropdown- right side of your image.
    You can open a temporary guest account to see if the problem persist in this environment.  If no than it is your user account.
    Try a safeboot and test to load only system apps no 3rd party.
    SafeBoot  http://support.apple.com/kb/HT1564
    If the pop is gone I suspect third party software interference.
    Log at your log-in items and remove the offend app.
    >SystemPreference>Users&Groups>Log-in items  (unlock the padlock)

  • How can I set up a preferred printer so I don't have to pick the printer each and every time I print something out?  At the moment, even immediately after printing one thing, it prompts me to pick a printer, which is very time consuming.

    How can I set up a preferred printer so I don't have to pick the printer each and every time I print something out?  At the moment, even immediately after printing one thing, it prompts me to pick a printer, which is very time consuming.

    Compass Health Systems wrote:
    How can I set up a preferred printer so I don't have to pick the printer each and every time I print something out?  At the moment, even immediately after printing one thing, it prompts me to pick a printer, which is very time consuming.
    No, there is not setting for a default printer.The system scans for available airprint printers each time you print.

  • My touch screen on my ipod Nano, Generation 6 has gone completely white. I can still play music if I "accidently" touch the right icon. Does anyone know how I can fix this. Also I have 2 other ipods that i can't sync anymore, it says they are not compatib

    My touch screen on my ipod Nano, Gen 6 has gone completely white. It had started going white the day before. I tried resetting it but to no avail. Does anyone know how I could fix this. Also I have 2 other ipods that I am no longer able to sync. It comes up with a message (best I can remember) something to the effect that my itunes version is not compatible with my ipod. Please help. I'm tired of buying new ipods when the new hasn't even worn off of them!!!
    Thanks

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • After updating to iOS 8, all my music on my music downloading app are gone..and it's very frustrating to go to your music but YOU DONT HAVE ANY CUZ IT SOMEHOW GOT DEPTETED. Please help

    after updating to iOS 8, all my music on my music downloading app are gone..and it's very frustrating to go to your music but YOU DONT HAVE ANY CUZ IT SOMEHOW GOT DEPTETED. Please help

    Yes I updated via wifi. And no...everything seemed to work fine. But I alsa had a problem with my photos..mostly on my iPhone. I had like 900 or so photos saved on my photo stream..and I used that to hold all my photos, rightt? CUZ I could delete pics from my camera roll but they'd still be on my photo stream  Well now after I updated. THEY ARE ALL GONE. And I'm really sad. I don't know how to get those pics Back.

  • Every time I turn my mac off, the desktop background changes. It always returns to the same picture, which was the second or third thing I changed my desktop to after getting my mac.

    Every time I turn my mac off, the desktop background changes. It always returns to the same picture, which was the second or third thing I changed my desktop to after getting my mac. I have background switching unchecked in my preferences, and I have never selected it as an option. Also, when I go to my preferences, it will show the icon of the picture I changed it to, even though the desktop itself has switched back.

    I would start with some basic troubleshooting.
    REPAIRING DISK PERMISSIONS -
    NOTE: refer to article "About Disk Utility's Repair Disk Permissions feature" found here http://support.apple.com/kb/ht1452 - for the actual apple article on these step. ----
    - click finder in the bottom dock, and in the window that opens, select applications in the left column - scroll through until you see the 'Utilities' folder and double click to open it.  Then double click on 'Disk Utility'
    - When prompted to select a disk volume or image, select the 'Macintosh HD' in the left column
    - ensure the the "first aid" tab is highlighted blue in the middle of the screen
    - click the button at the bottom that says 'Repair Disk Permissions'
    - this process will take a few minutes to run.  It will indicate it's done, by scrolling to the bottom of the "details area" displaying 'Permissions repair complete'
    Dan Frankes has written an excellent article for Macworld on "Permissions" and the need to repair them - see - http://www.macworld.com/article/52220/2006/08/repairpermissions.html.    Another good web site is - http://www.thexlab.com/faqs/durepairfns.html.
    REPAIRING DISK - About OS X Recovery - http://support.apple.com/kb/HT4718.
    - restart your computer hold down command + R keys on the keyboard to boot you into Lion / Mountain Lion Recovery mode
    - select english as your main language then the continue arrow
    - select "Disk Utility" on the resulting screen then 'Disk Utility' ---
    - When prompted to select a disk volume or image, select the 'Macintosh HD' in the left column
    - ensure the the "first aid" tab is highlighted blue in the middle of the screen
    - click the button at the bottom that says 'REPAIR DISK' .......NOT "Repair disk permissions"
    - this process will take a few minutes to run.  It will indicate it's done, by scrolling to the bottom of the "details area" displaying "The Macintosh HD appears OK"
    If you get any other message OTHER than "The Macintosh HD appears OK", like "the Macintosh HD was repaired successfully" run the "Disk Repair" again, until it displays  "The Macintosh HD appears OK".
    Once done, restart the computer as normal

  • IOS 7 How do you turn off the security feature that requires me to type in my password everytime I use the phone?

    IOS 7 How do you turn off the security feature that requires me to enter my 4 digit password everytime I use my phone?

    Hi puravidamaine,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    If you know your passcode, here are the instructions to turn it off:
    iOS: Understanding passcodes
    http://support.apple.com/kb/HT4113
    If you don't remember your passcode, follow these instructions:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212?viewlocale=en_US
    Cheers,
    - Judy

  • How do i unauthorize a cpu i dont have anymore

    how do i unauthorize a cpu i dont have anymore

    Use the Deauthorize All command documented in this article. If that's not an option, use the 'contact iTunes Store support' link at the bottom of it.
    (109098)

  • How can I save to the same map every time when printing pdfs?

    How can I save to the same map every time when printing pdfs?
    Finder points to the document map even when I chose a different map recently.
    I often print series of pdfs from the print dialog box, I'd like to choose the map to save to and then have all subsequent pdf prints automatically directed to the same map until I decide otherwise.

    that link seems to be broken right now:
    403 Error - Forbidden  - No cred, dude.

Maybe you are looking for