Essential mac maintanence?

Discussion in 'macOS' started by AP_piano295, Oct 30, 2005.

  1. AP_piano295 macrumors 65816

    Joined:
    Mar 9, 2005
    #1
    So ive just recently gotten my first mac a completely kick a** ibook and I wondering about essential maintainece that I should do and how to do it. Ive never been great about maintaing anything about computers except their physical well being. Probly because I never trusted my windows machine enough to put something important on it. And because I knew that I would always be reformating every 6 to 12 months (limewire).
     
  2. MisterMe macrumors G4

    MisterMe

    Joined:
    Jul 17, 2002
    Location:
    USA
    #2
    Download OnyX.
     
  3. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #3
    I'd search the forum. There are tons of threads on "maintenance".
     
  4. superbovine macrumors 68030

    superbovine

    Joined:
    Nov 7, 2003
  5. BollywooD macrumors 6502

    BollywooD

    Joined:
    Apr 27, 2005
    Location:
    Surfers Paradise
    #5
    I run ONYX probably once a week, repair permissions with Disk Utility after installing any new apps (in your /applications/utilities folder) and have applejack installed in case of emergencies.
     
  6. ToastyX macrumors regular

    Joined:
    Oct 4, 2005
  7. Bern macrumors 68000

    Bern

    Joined:
    Nov 10, 2004
    Location:
    Australia
    #7
    What do you run Onyx for?

    There's really no maintenance you need to do with OS X unless you're concerned about the daily, weekly, monthly nightly (actually around 4.30am) routines not running because you have shut down your Mac (if you only sleep it these tasks will run when you next awaken it apparently).

    If you want to run these tasks manually just do it in Terminal which is in your Applications/Utlities folder.

    Launch Terminal, in the Computer > Mac OS X > Applications > Utilities folder.

    1.At the prompt, type the following, exactly as written:
    sudo periodic daily weekly monthly

    2. Press Return.

    3. Type your Admin password when prompted, then press Return.

    All three scripts will run in sequence. There is no visual feedback while the scripts execute. You will know they are completed when the Terminal prompt returns.

    You can also run the scripts individually. For example, to run just the daily script, you would type the command

    sudo periodic daily
    in step 3 above.
     
  8. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #8
    Yes, everything can be done in Terminal, but many users are not comfortable with Terminal.app and unix commands, and some - like me, who aren't uncomfortable with terminals - just prefer the ease-of-use in apps like OnyX or MainMenu (my favorite ;)). :)

    Repairing permissions (the most common maintenance task) is also much easier with OnyX/MainMenu then with Disk Utility/Terminal.

    And, just to add to the emphasis, the most important thing is to have reasonably current backup of all your essential data!
     
  9. fayans macrumors 6502a

    fayans

    Joined:
    Sep 19, 2005
    Location:
    MacRumors: Forums
    #9
    What is the exact time those periodic scripts should run actually? 3.00AM? 4.00AM? or 4.30AM?
     
  10. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #10
  11. fayans macrumors 6502a

    fayans

    Joined:
    Sep 19, 2005
    Location:
    MacRumors: Forums
    #11
    I am comfortable using MacJanitor to do those periodic maintenance. I just couldn't get it running automatically though. :)
     
  12. barneygumble macrumors 6502a

    Joined:
    Apr 18, 2005
    #12
    My only suggestion would be to clean your machine occasionally with a cloth, only maintainance i do:)

    Enjoy your machine, it's a nice change
     
  13. Bern macrumors 68000

    Bern

    Joined:
    Nov 10, 2004
    Location:
    Australia
    #13
    As opposed to opening Disk Utility in your Applications/Utilities folder? :eek:
     
  14. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #14
    I had a discussion with another member about this, and we are pretty sure that the scripts run when they can. Meaning, if they are missed because of sleep or shutdown, they will run later.
     
  15. fayans macrumors 6502a

    fayans

    Joined:
    Sep 19, 2005
    Location:
    MacRumors: Forums
    #15
    IMO yes and I agree with Mitthrawnuruodo on this.
     
  16. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #16
    Yes, it's easier, especially for the not so technically inclined. Disk Utility is not the most user friendly piece of software on a Mac. OnyX, and even more so the pre-authorized MainMenu is far easier. You cannot make it much easier than this (;)):
     

    Attached Files:

  17. yoak macrumors 65816

    yoak

    Joined:
    Oct 4, 2004
    Location:
    Oslo, Norway
    #17
    Hei Mitthrawnuruodo.
    Thanks for telling me about Mainmenu, great little app. that one.
     
  18. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #18
    So I guess that means no one but me uses the terminal to repair permissions?
    diskutil repairPermissions disk0s3
    I feel it is much faster. Probably just in my head though. :eek:
     
  19. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #19
    I used to do it, and / is easier to type than diskxxx, but I don't you need sudo to get it to fix all permissions? :confused: Like this:

    sudo diskutil repairPermissions /

    But after I found MainMenu, even Terminal is too much of a hassle... :D

    Værsågod... ;)
     
  20. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #20
    I think you are right, but I'm not sure. I don't do it manually. I made a script called maintenance and saved it in /etc/

    #!/bin/bash
    # start
    say "now entering custom maintainance"
    # repair permissions
    diskutil repairPermissions disk0s3
    # software update
    softwareupdate -ir
    # update prebindings
    update_prebinding -root /
    # end
    say "custom maintainance has finished"

    Then I added to my crontab and run it as root

    # minute hour mday month wday who command
    00 3 * * 3 root /etc/maintenance

    Repair Permission, update prebindings, and download software updates with out doing anything. Truly the easiest and laziest way to do things. :D
     
  21. fayans macrumors 6502a

    fayans

    Joined:
    Sep 19, 2005
    Location:
    MacRumors: Forums
    #21
    That script looks very technical and I wonder how many users know how to write such script. I wish I could. :eek:
     
  22. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #22
    Actually, not to sound arrogant, but it a very easy script.

    #!/bin/bash - this is needed for all bash scripts. #!/bin/sh works too. After this line, all lines staring with a "#" are comments so I'll ignore them.

    say "now entering custom maintainance" - say "X" will force the Mac to speak whatever in in the quotes.

    diskutil repairPermissions disk0s3 - Tell Disk Utilities to Repair Permissions on disk0s3. disk0s3 means the first disk (we usually cound from 0 in the computer world), 3rd partition (I'm think it is because there are 2 hidden partition on Mac formated drives). It you have a 2nd partition, you'd use disk0s4.

    softwareupdate -ir - runs software update. the i means install the updates. The r means all recommended updates.

    update_prebinding -root / -I'm not sure about this one. I copied it from someone else. :eek:

    say "custom maintainance has finished" - Make the computer talk again.

    I hope this helped some. I really recommend everyone to learn some sort of scripting language (I prefer bash) and the terminal. You'll be amazed at what you can do.
     
  23. Eric5h5 macrumors 68020

    Joined:
    Dec 9, 2004
    #23
    Then you made the right choice...Macs don't really need maintenance. No registry, no viruses, no Windows. I've done nothing to my Mac (except make backups), and it runs as well now as it did when I got it a year ago.

    --Eric
     
  24. yoak macrumors 65816

    yoak

    Joined:
    Oct 4, 2004
    Location:
    Oslo, Norway
  25. fayans macrumors 6502a

    fayans

    Joined:
    Sep 19, 2005
    Location:
    MacRumors: Forums
    #25
    Thanks grapes911 for the details.

    Does your script works with Panther?
     

Share This Page