RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Anyway to add a symbolic link to Retropie_setup.sh?

    Scheduled Pinned Locked Moved Help and Support
    setup
    3 Posts 3 Posters 331 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DeltaGemini
      last edited by

      I'm often using SSH to log in and edit my retropie. Is there anyway of adding a symbolic link to run setup instead of typing the sudo file path?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Create an alias:

        alias rpie='cd $HOME/RetroPie-Setup && sudo ./retropie_setup.sh'
        
        1 Reply Last reply Reply Quote 1
        • ClydeC
          Clyde
          last edited by Clyde

          I usually do just press Ctrl+r to search the command line history, enter "setup" to get the last setup command, and press Enter to run it. But mitu's solution is much more elegant (and persistent, depending on the maximum length of your command history). 👍

          By the way, one thing that you might find useful is to start the setup inside a screen session, so you can logout while setup keeps doing things like updating or scraping:

          screen -dmS setup sudo ~/RetroPie-Setup/retropie_setup.sh && screen -r setup
          

          or with mitu's alias:

          screen -dmS setup rpie && screen -r setup
          

          The && screen -r setup at the end enters the screen session immediately after its successful launch. You'll notice no difference to running setup without screen, but you can detach from it without killing setup by pressing Ctrl+aand then d (for "detach") alone. You can reattach to a running screen session by entering screen -r in the command line, optionally followed by the name of the session (e.g. screen -r setup) in the case of multiple running screen sessions.

          After detaching from screen, you'll be back in the command line and you can logout normally without killing any running detached screen session. Then, you could even relogin to RetroPie from another machine and reattach yourself to your screen session from there.

          Sorry for the slightly off-topic lecture, your question triggered my "sharing is caring" mode. 😇

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.