On Tue, Jan 21, 2014 at 09:10:56PM -0600, Cliff Scott wrote:
> 
> Sounds very useful, however I am very much a newbie regarding stuff at the
> command level on the Mac.

I'm sorry, should have thought about that.


> I assume from what you wrote that the file that I make is named
> linktool.sh. Did that.  The "sh" extension I understand means it is a
> script.

The name of the executable doesn't matter as long as it is executable.
I named my copy `linktool' without `.sh'.


> Ok, but where do I find rc.local

/etc/rc.local probably doesn't exist yet (see below).


> and what is meant by absolute path?

``A full path or absolute path is a path that points to the same
  location on one file system regardless of the working directory
  or combined paths. It is usually written in reference to a root
  directory.''

Examples of absolute paths:

        /
        /etc
        /Users/cliff
        /Directory with Spaces/foo/bar

Examples of relative paths:

        cliff
        foo/bar


The following steps should get you going (`$' = shell prompt):


Let's test directories first:

        $ ls -d /usr/local/bin
        /usr/local/bin

        $ ls -d /Applications/VirtualBox.app
        /Applications/VirtualBox.app

both commands shouldn't produce any errors.


Next, download linktool.sh as linktool:

        $ sudo curl -o /usr/local/bin/linktool http://smokva.net/src/linktool.sh
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                         Dload  Upload   Total   Spent    Left  
Speed
        100  7462  100  7462    0     0  30054      0 --:--:-- --:--:-- 
--:--:-- 36578


A quick sanity check before executing:

        $ shasum /usr/local/bin/linktool
        d2eaf56d840184fc23a149153fc00fff0eff35f1  /usr/local/bin/linktool

if the checksum matches, good.  If not, something went wrong during the
download or I modified the source in the meantime. :)


Let's make linktool executable

        $ sudo chmod +x /usr/local/bin/linktool


and add the one line to /etc/rc.local (that probably doesn't exist yet)

        $ sudo sh -c 'echo /usr/local/bin/linktool setup 
/Applications/VirtualBox.app >>/etc/rc.local'


Finally, reboot and you're done.


HTH and let me know if you have any other questions.

                Petar Bogdanovic

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
VBox-users-community mailing list
VBox-users-community@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe:  
mailto:vbox-users-community-requ...@lists.sourceforge.net?subject=unsubscribe

Reply via email to