Skip to main content

Home/ The Apple Group/ Group items matching "sudo" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
Robert Ogden

Install software updates from the command line - 0 views

  •  
    To install software updates from the command line, you'll use the aptly named 'softwareupdate' command. Here are the most relevant usages of the command for most users: softwareupdate -l will give you a list of all updates available softwareupdate -i [package name] will install the specified package softwareupdate -i -a will install all updates available softwareupdate -i -r will install only the recommended updates softwareupdate --ignore [package name] will ignore specified update softwareupdate --help for more info on the softwareupdate command You'll likely need to use the sudo command to actually install the updates on a Mac, simply place sudo in front of one of the above commands to run it with full permissions as root. For example: sudo softwareupdate -i -r
Jeff Johnson

Use networksetup to change AirPort networks from the command line - 2 views

  •  
    Sure enough: networksetup -setairportnetwork Airport 'Your SSID Here' 'Network Pa$$wOrd Here' did just what I wanted, and it did not require an administrator password or sudo. If you need to get a listing of all of the current Wi-Fi networks which are broadcasting SSIDs, you can use 'airport -s' for a list which will also show what security measures are used. By the way, if you aren't familiar with networksetup, you should definitely read up on it. It has a lot of features that could come in handy. It also wields a great amount of power, so be careful. The command listed above is fairly innocuous but there is a lot more it can do.
Graham Perrin

XBinary: Extended Binary Format Support for Mac OS X - 0 views

  • Extended Binary Format Support
  • © Amit Singh
  • January 2009
  • ...51 more annotations...
  • —With the advent of x86-based Macintosh computers, Universal binaries, originally known as "fat" or multiple-architecture binaries, appeared in Mac OS X.
  • Universal Binaries
  • for one or more architectures
  • along with a header that describes each constituent binary.
  • a wrapper that contains Mach-O binaries
  • a "4-way fat" executable could consist of Mach-O executables for the i386 (32-bit Intel), x86_64 (64-bit Intel), ppc (32-bit PowerPC), and ppc64 (64-bit PowerPC) architectures
  • Mac OS X does not provide any kernel-level or user-level interfaces to extend binary format support.
  • we'll need to write special software
  • new kernel functionality
  • software will involve a kernel extension.
  • extend the kernel
  • and execute them through specified handler programs.
  • Let us call the new software that implements these features XBinary. binfmt_misc Those familiar with the Linux kernel will realize that functionality similar to what's been described here exists in Linux as the binfmt_misc kernel feature. XBinary is conceptually similar
  • XBinary also has some Mac OS X specific features.
  • download and install the XBinary package
  • a command-line tool (xbinary
  • a kernel extension (xbinary.kext)
  • research software at this point
  • choosing the best library from an extended fat library file.
  • for developers, researchers, and power users
  • take XBinary for a spin
  • XBinary: extended binary format support for Mac OS X Copyright (c) 2009 Amit Singh. All Rights Reserved. http://osxbook.com The XBinary software allows you to extend the Mac OS X kernel such that it can recognize arbitrary binary formats and execute them through specified handler programs. (Mac OS X natively supports executing only Mach-O binaries, Universal (fat) binaries, and interpreter scripts.) XBinary consists of a kernel extension (xbinary.kext) and this command-line tool, which lets you control the XBinary facility. This requires superuser privileges, so you should run this tool using sudo(8). The XBinary kext must be loaded for the facility to be available.
  • You can add and manipulate in-kernel entries that enable recognition of binary formats.
  • You can also specify flags that affect how a matched entry is processed. By default, the argument vector IS adjusted and setuid/setgid binaries are NOT allowed.
  • make experimentation involving new binary formats easy
  • Let us look at Java applications
  • then specify this wrapper script as the interpreter
  • and subsequently invoke the Java application launcher.
  • given a Java class file
  • a wrapper script
  • We don't even have to write such scripts
    • Graham Perrin
       
      :-)
  • a Universal binary containing, say, Tiger and Leopard versions
  • simplify code creation and maintenance.
  • Consider a 2-way fat binary containing i386 and x86_64 architectures.
  • operating system versions in addition to processor architectures.
    • Graham Perrin
       
      :-)
  • Now think of an "extended" fat binary mechanism that incorporates
  • our hypothetical extended fat binary contains eight "architectures"
  • the extended fat feature as implemented by XBinary is not a complete implementation
  • These examples assume that you are on an x86 (little-endian) machine.
  • XBinary requires Mac OS X 10.5.x (Leopard).
  • Executive Summary This document discusses XBinary, a new software that lets you add kernel-level support for executing files in arbitrary binary formats on Mac OS X.
  • Extending Executability
  • recognize arbitrary binary formats
  • using the xbinary tool
  • copious "help" output
  • Each entry must have as its name a unique identifier string up to 31 bytes in size. Additionally, a set of other arguments specify to the kernel how to recognize that binary format and which interpreter to invoke to handle it. XBinary can recognize a binary EITHER by matching magic bytes within the first page of the file OR by matching a file extension. OTHER_ARGS must be a valid combination of the following arguments (some are optional).
  • that will determine the startup class name
  • Bonus Feature: Extra Fat Binaries
  • Since XBinary is experimental, why not experiment with such a feature too?
  • XBinary wouldn't be able to help the dynamic linker
  • The XBinary software
David Corking

Bugs & Fixes: A potentially risky Finder permissions command | Mac OS X | Mac 911 | Macworld - 0 views

  • In brief, enter sudo chmod -RN ~ in Terminal, followed by starting up from an Install DVD and selecting “Reset Home Directory Permissions and ACLs” from the Rest Password utility.
  • you’re usually better off using the appropriate UNIX commands in Terminal
  •  
    Suppose you want to change the permissions settings of most or all the items in a given folder. Perhaps you want to modify permissions so you can access the content of files you would normally be prevented from editing. Or perhaps the permissions of your own files have somehow gotten messed up so that you can no longer copy or move them.
David Corking

How to Switch to the Mac - Tao of Mac | February 2007 | Rui Carno - 0 views

  • the installer creates the first user account. This is the important bit: it is an administration account – call it “Administrator” or something like that and create another for yourself afterwards (if you’re a UNIX head, this is not root, which is disabled).
    • David Corking
       
      Q: Why doesn't the installer _tell_ you this? It looks and feels like an ordinary unix user with 'sudo' access, but according to Tao, it can be troublesome. A: My guess is that Apple doesn't want you to have to remember two passwords. Perhaps Apple decided, unlike Tao, that the security of asking for passwords for important tasks is good enough.
  • Create your own Applications folder inside your home directory (Mac OS X will change the icon accordingly) and try out new stuff in there.
  • drag the entire Applications folder to the right-hand side of the Dock, forming what Apple calls a “stack”
  • ...2 more annotations...
  • Put things you want to share among users in the /Users/Shared folder.
  • Set up separate accounts for kids using the Simple Finder or Some Limits option under the Limitations tab.
    • David Corking
       
      In Mac OS X 10.4, you find this in preferences under Accounts, and click the "Parental Controls" tab, then select Finder and click Configure .... I don't think there is a "Limitations" tab.
  •  
    This article is packed with great tips that you won't find in other introductory tutorials. Therefore it is a bit heavy to read, and worth dipping into even if you have used Macs for a year or two.
Richard Sheppard

easier instructions to install Tiger's X11.app - 0 views

  • sudo ditto -Vx --noqtn /Volumes/X11\ Update\ 2006/X11Update2006.pkg/ Contents/Archive.pax.gz /
    • Richard Sheppard
       
      The space between "...2006.pkg/" and "Contents/..." shouldn't be there. It's: sudo ditto -Vx --noqtn /Volumes/X11\ Update\ 2006/X11Update2006.pkg/Contents/Archive.pax.gz HTH
  •  
    How to install and configure Leopard to run Tiger's X11 (which is less buggy) yet still keep the Leopard version. Also includes instructions to reverse the configuration.
1 - 6 of 6
Showing 20 items per page