+ Reply
Results 1 to 17 of 17

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Found additional iPhone options, BUT?

is a discussion within the

General iPhone Chat

forums, a part of the

iPhone Modding

section;
Hello, I found this site with a lot of new (to me at least) information: http://www.noobforums.com/forums/showthread.php?t=13236 I was wondering though can some one explain to me what "symbolic link" is.
...
  1. #1
    My iPhone is a Part of Me n0m0n's Avatar
    Join Date
    Nov 2007
    Location
    Here
    Posts
    835
    Thanks
    58
    Thanked 39 Times in 38 Posts

    Default Found additional iPhone options, BUT?
    Hello,
    I found this site with a lot of new (to me at least) information:

    http://www.noobforums.com/forums/showthread.php?t=13236

    I was wondering though can some one explain to me what "symbolic link" is.

    Or maybe in layman terms, show / explain to me what he is sharing?

    I created the Applications in the var/rot/ directory but dont understand anything past that.

    I am new at this and learning...

    Thanks

  2. #2
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by n0m0n View Post
    Hello,
    I found this site with a lot of new (to me at least) information:

    http://www.noobforums.com/forums/showthread.php?t=13236

    I was wondering though can some one explain to me what "symbolic link" is.

    Or maybe in layman terms, show / explain to me what he is sharing?

    I created the Applications in the var/rot/ directory but dont understand anything past that.

    I am new at this and learning...

    Thanks
    A Symbolic Link is the Unix version of OSX's "make Alias" command. It simply creates an alias of the original item as a place holder, so then you can move the original to any other location you like and still be directed to it.
    Get "iPod & iTunes for Dummies", it'll change your life.

  3. The Following User Says Thank You to Eurisko For This Useful Post:

    n0m0n (12-10-2007)

  4. #3
    My iPhone is a Part of Me n0m0n's Avatar
    Join Date
    Nov 2007
    Location
    Here
    Posts
    835
    Thanks
    58
    Thanked 39 Times in 38 Posts

    Quote Originally Posted by Eurisko View Post
    A Symbolic Link is the Unix version of OSX's "make Alias" command. It simply creates an alias of the original item as a place holder, so then you can move the original to any other location you like and still be directed to it.
    Thank you for replying:

    Can you give me an example?
    I still find this hard to follow.

    Thank you again

  5. #4
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by n0m0n View Post
    Thank you for replying:

    Can you give me an example?
    I still find this hard to follow.
    For the most common example, if you wish to move your Applications folder to your root folder to save space, you'd first copy the contents of the Applications folder over to your root folder:

    # cp -R /Applications /var/root/Applications

    the -R means recursive, so it will copy the folder and everything in it.

    Then you can delete the original /Applications folder:

    # rm -R /Applications

    Next, you would create your symbolic link:

    # ln -s /var/root/Applications /Applications

    The ln means Link, the -s means symbolic (alias). The command tells the system that every time /Applications is referenced, re-direct to /var/root/Applications as the physical location.
    Get "iPod & iTunes for Dummies", it'll change your life.

  6. The Following User Says Thank You to Eurisko For This Useful Post:

    n0m0n (12-10-2007)

  7. #5
    My iPhone is a Part of Me n0m0n's Avatar
    Join Date
    Nov 2007
    Location
    Here
    Posts
    835
    Thanks
    58
    Thanked 39 Times in 38 Posts

    Quote Originally Posted by Eurisko View Post
    For the most common example, if you wish to move your Applications folder to your root folder to save space, you'd first copy the contents of the Applications folder over to your root folder:

    # cp -R /Applications /var/root/Applications

    the -R means recursive, so it will copy the folder and everything in it.

    Then you can delete the original /Applications folder:

    # rm -R /Applications

    Next, you would create your symbolic link:

    # ln -s /var/root/Applications /Applications

    The ln means Link, the -s means symbolic (alias). The command tells the system that every time /Applications is referenced, re-direct to /var/root/Applications as the physical location.
    Can I have both Applications folders?
    I was thinking of moving the heavier in size over to var/root/applications, while still using the original app folder.
    Also the-In is the way it is to be written right?
    I dont write link your only explaining what it means?
    I am green but getting educated!

    THANK YOU VERY MUCH
    JW

  8. #6
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    ln (small l) not In

    Also, you can't have a symbolic link for a folder while keeping the original in place. It doesn't work. It's all or nothing baby.

    If you actually want to do this, there's an additional step you need to be aware of. Go to the Guides section and there's a full blown How-To on moving your Applications folder there.
    Get "iPod & iTunes for Dummies", it'll change your life.

  9. The Following User Says Thank You to Eurisko For This Useful Post:

    n0m0n (12-10-2007)

  10. #7
    My iPhone is a Part of Me Digital Oxygen's Avatar
    Join Date
    Sep 2007
    Posts
    525
    Thanks
    0
    Thanked 29 Times in 27 Posts

    A symlink is the nix (linux, unix, os x) version of a windows shortcut. I don't know how much plainer we can make it for you.
    Search NAZI

  11. The Following User Says Thank You to Digital Oxygen For This Useful Post:

    y0haan (12-10-2007)

  12. #8
    My iPhone is a Part of Me n0m0n's Avatar
    Join Date
    Nov 2007
    Location
    Here
    Posts
    835
    Thanks
    58
    Thanked 39 Times in 38 Posts

    Quote Originally Posted by Eurisko View Post
    ln (small l) not In

    Also, you can't have a symbolic link for a folder while keeping the original in place. It doesn't work. It's all or nothing baby.

    If you actually want to do this, there's an additional step you need to be aware of. Go to the Guides section and there's a full blown How-To on moving your Applications folder there.
    Ok so I cant leave some folders apps as they are now, and move others to a new location like previously described?

    I assumed that I could leave a few apps as they are and relocate a few while change in the location as we have been discussing.

    They all have to be in one locations?

    For instance I have a few apps on drive D: on my PC
    and a few on drive E:
    As long as I point the icon to the correct location they all work.
    This would not be the same idea?

    Thanks
    JW

  13. #9
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    No. You can't have a folder called Applications and an alias called Applications in the same place. It will be seen as a conflict.
    Get "iPod & iTunes for Dummies", it'll change your life.

  14. The Following User Says Thank You to Eurisko For This Useful Post:

    n0m0n (12-10-2007)

  15. #10
    My iPhone is a Part of Me n0m0n's Avatar
    Join Date
    Nov 2007
    Location
    Here
    Posts
    835
    Thanks
    58
    Thanked 39 Times in 38 Posts

    Quote Originally Posted by Eurisko View Post
    No. You can't have a folder called Applications and an alias called Applications in the same place. It will be seen as a conflict.
    No I didn't mean that.
    Ok 1 is presently Applications and 1 is var/root/applications.

    If this is not allowed I can rename the var/root/ one.

    Thanks

  16. #11
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by n0m0n View Post
    No I didn't mean that.
    Ok 1 is presently Applications and 1 is var/root/applications.

    If this is not allowed I can rename the var/root/ one.

    Thanks
    The iPhone will only look for applications in the Applications folder, one folder. You can't have some applications in one folder, while others are located in a separate folder, they won't be found by Springboard.
    Get "iPod & iTunes for Dummies", it'll change your life.

  17. The Following User Says Thank You to Eurisko For This Useful Post:

    n0m0n (12-10-2007)

  18. #12
    My iPhone is a Part of Me n0m0n's Avatar
    Join Date
    Nov 2007
    Location
    Here
    Posts
    835
    Thanks
    58
    Thanked 39 Times in 38 Posts

    Quote Originally Posted by Eurisko View Post
    The iPhone will only look for applications in the Applications folder, one folder. You can't have some applications in one folder, while others are located in a separate folder, they won't be found by Springboard.
    Oh ok so the iPhone wont follow the path only the folder name.
    I guess I need to change the name or delete the Applications folder that I created in var/root/ even though it has not affected the operations of the existing apps/icons.

    Thanks

  19. #13
    What's Jailbreak?
    Join Date
    Nov 2007
    Location
    Helsinki, Finland
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Expanding on this idea:

    Does the iPhone honor sym-links in the Application folder?

    If I wanna have my 3rd party Applications in say /usr/Applications/, and create a sym-link, say SSH.app in /Applications -> /usr/Applications/SSH.app/ would that work? I guess it'd be easy enough for me to try this out myself, too, but if somebody's already tried, let me know and save me a few extra tries...

    Cheers!

  20. #14
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by mrfin View Post
    Expanding on this idea:

    Does the iPhone honor sym-links in the Application folder?

    If I wanna have my 3rd party Applications in say /usr/Applications/, and create a sym-link, say SSH.app in /Applications -> /usr/Applications/SSH.app/ would that work? I guess it'd be easy enough for me to try this out myself, too, but if somebody's already tried, let me know and save me a few extra tries...

    Cheers!
    Yes, it would work, but would fail in two areas: 1st, you'd have to manually do this for every 3rd Party app you install. 2nd, every time you did an update of a 3rd Party app, it would place it back in /Applications, not in your defined /usr/Applications
    Get "iPod & iTunes for Dummies", it'll change your life.

  21. The Following User Says Thank You to Eurisko For This Useful Post:

    mrfin (12-11-2007)

  22. #15
    What's Jailbreak?
    Join Date
    Nov 2007
    Location
    Helsinki, Finland
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by Eurisko View Post
    1st, you'd have to manually do this for every 3rd Party app you install. 2nd, every time you did an update of a 3rd Party app, it would place it back in /Applications, not in your defined /usr/Applications
    Thanks! I was aware of the 1st condition, but are you certain about the 2nd? If the sym-link already exists, wouldn't the app just "re-install" in the same directory where the sym-link points to? Of course, this would only happen if the installer does not remove the original directory when it already exists.

    Not a solution for the general public, but I'm happy with the extra manual work if it gives me more control over where the apps reside!

  23. #16
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,308
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by mrfin View Post
    Thanks! I was aware of the 1st condition, but are you certain about the 2nd? If the sym-link already exists, wouldn't the app just "re-install" in the same directory where the sym-link points to? Of course, this would only happen if the installer does not remove the original directory when it already exists.
    Remember that the symlink would belong to the program, not the Applications folder. The Installer.app doesn't care where the program is, when it updates, it will always place the new version in the default Applications folder.
    Get "iPod & iTunes for Dummies", it'll change your life.

  24. #17
    What's Jailbreak?
    Join Date
    Nov 2007
    Location
    Helsinki, Finland
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by Eurisko View Post
    Remember that the symlink would belong to the program, not the Applications folder. The Installer.app doesn't care where the program is, when it updates, it will always place the new version in the default Applications folder.
    In theory, the sym-link is in the Applications folder and if the Installer does not remove or overwrite it, it should place the new files where the link points to. But as I don't know how the Installer handles sym-links in this case, it's all conjecture until tested...

    Nevertheless, I do find the iPhone an amazing piece of technology; almost like a lap-top (or palm-top . So many things that you can do....

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts