How can I install Android Studio and the Android SDK systemwide on a Linux system?Starting managed Windows deploymentLinux kernel multiple file system drivers and performanceHow to install packages on Linux or Solaris on non-default paths?What permissions should my website files/folders have on a Linux webserver?How does the number of subdirectories impact drive read / write performance on Linux?rsynced files not getting proper ACLSet up diskspace quotas according to a dynamic backend on LinuxWhy do we use a OS Base Image with Docker if containers have no Guest OS?Best practice: Should I always install a fresh OS for new employees?Is it possible to set up a VPN server on Linux to authenticate against PAM or passwd with Android and Windows clients?

The Clique vs. Independent Set Problem

What would happen to a modern skyscraper if it rains micro blackholes?

Are the number of citations and number of published articles the most important criteria for a tenure promotion?

Unknown notation: What do three bars mean?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

Languages that we cannot (dis)prove to be Context-Free

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Why, historically, did Gödel think CH was false?

How does strength of boric acid solution increase in presence of salicylic acid?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Mage Armor with Defense fighting style (for Adventurers League bladeslinger)

"You are your self first supporter", a more proper way to say it

tikz: show 0 at the axis origin

What is the offset in a seaplane's hull?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Does Unearthed Arcana render Favored Souls redundant?

What defenses are there against being summoned by the Gate spell?

Can I make popcorn with any corn?

How much RAM could one put in a typical 80386 setup?

Have astronauts in space suits ever taken selfies? If so, how?

How does one intimidate enemies without having the capacity for violence?

Do VLANs within a subnet need to have their own subnet for router on a stick?

Pattern match does not work in bash script

Characters won't fit in table



How can I install Android Studio and the Android SDK systemwide on a Linux system?


Starting managed Windows deploymentLinux kernel multiple file system drivers and performanceHow to install packages on Linux or Solaris on non-default paths?What permissions should my website files/folders have on a Linux webserver?How does the number of subdirectories impact drive read / write performance on Linux?rsynced files not getting proper ACLSet up diskspace quotas according to a dynamic backend on LinuxWhy do we use a OS Base Image with Docker if containers have no Guest OS?Best practice: Should I always install a fresh OS for new employees?Is it possible to set up a VPN server on Linux to authenticate against PAM or passwd with Android and Windows clients?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Android Studio really seems to prefer to behave like it's running on a single-user system. Is there a good way to install it and the Android SDK on a Linux system in a way that minimizes the amount of per-user data it creates?



I've got a bunch of Fedora Linux client machines with hundreds of accounts. The accounts have relatively-small disk quotas and the default way to run Android Studio ends up dropping 2-3 GB of data into each user's home directory, between the SDK and the AVD images. I would like, if possible, to have Android Studio, the SDK, and the default AVD images installed centrally on each system (or, even better, on a NFS share that they all mount), in such a way that when a user starts Android Studio from the standard menu entry, everything just works without the user having to manually configure anything pertaining to the particulars of the system installation.



The systems that run Android Studio are all Fedora 23. (The NFS server is Scientific Linux 6, but that shouldn't really matter.)










share|improve this question
























  • Hmm, looks tricky, as studio.sh hard-codes $HOME, though with luck you may be able to customize the ~/.AndroidStudio2.0/config/options files to point to a shared Android/Sdk directory, unless the software assumes read/write to that directory...

    – thrig
    Apr 25 '16 at 23:27











  • I think the per-user config files would need to be read-write for the users so they could save genuinely individual preferences, like color schemes and so on.

    – asciiphil
    Apr 26 '16 at 13:08











  • Found detailed instructions at this page. Should help anyone reaching here for solution...

    – user370351
    Aug 13 '16 at 7:36

















1















Android Studio really seems to prefer to behave like it's running on a single-user system. Is there a good way to install it and the Android SDK on a Linux system in a way that minimizes the amount of per-user data it creates?



I've got a bunch of Fedora Linux client machines with hundreds of accounts. The accounts have relatively-small disk quotas and the default way to run Android Studio ends up dropping 2-3 GB of data into each user's home directory, between the SDK and the AVD images. I would like, if possible, to have Android Studio, the SDK, and the default AVD images installed centrally on each system (or, even better, on a NFS share that they all mount), in such a way that when a user starts Android Studio from the standard menu entry, everything just works without the user having to manually configure anything pertaining to the particulars of the system installation.



The systems that run Android Studio are all Fedora 23. (The NFS server is Scientific Linux 6, but that shouldn't really matter.)










share|improve this question
























  • Hmm, looks tricky, as studio.sh hard-codes $HOME, though with luck you may be able to customize the ~/.AndroidStudio2.0/config/options files to point to a shared Android/Sdk directory, unless the software assumes read/write to that directory...

    – thrig
    Apr 25 '16 at 23:27











  • I think the per-user config files would need to be read-write for the users so they could save genuinely individual preferences, like color schemes and so on.

    – asciiphil
    Apr 26 '16 at 13:08











  • Found detailed instructions at this page. Should help anyone reaching here for solution...

    – user370351
    Aug 13 '16 at 7:36













1












1








1








Android Studio really seems to prefer to behave like it's running on a single-user system. Is there a good way to install it and the Android SDK on a Linux system in a way that minimizes the amount of per-user data it creates?



I've got a bunch of Fedora Linux client machines with hundreds of accounts. The accounts have relatively-small disk quotas and the default way to run Android Studio ends up dropping 2-3 GB of data into each user's home directory, between the SDK and the AVD images. I would like, if possible, to have Android Studio, the SDK, and the default AVD images installed centrally on each system (or, even better, on a NFS share that they all mount), in such a way that when a user starts Android Studio from the standard menu entry, everything just works without the user having to manually configure anything pertaining to the particulars of the system installation.



The systems that run Android Studio are all Fedora 23. (The NFS server is Scientific Linux 6, but that shouldn't really matter.)










share|improve this question
















Android Studio really seems to prefer to behave like it's running on a single-user system. Is there a good way to install it and the Android SDK on a Linux system in a way that minimizes the amount of per-user data it creates?



I've got a bunch of Fedora Linux client machines with hundreds of accounts. The accounts have relatively-small disk quotas and the default way to run Android Studio ends up dropping 2-3 GB of data into each user's home directory, between the SDK and the AVD images. I would like, if possible, to have Android Studio, the SDK, and the default AVD images installed centrally on each system (or, even better, on a NFS share that they all mount), in such a way that when a user starts Android Studio from the standard menu entry, everything just works without the user having to manually configure anything pertaining to the particulars of the system installation.



The systems that run Android Studio are all Fedora 23. (The NFS server is Scientific Linux 6, but that shouldn't really matter.)







linux installation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 26 '16 at 2:44









Ward

11.7k73956




11.7k73956










asked Apr 25 '16 at 22:04









asciiphilasciiphil

2,18421843




2,18421843












  • Hmm, looks tricky, as studio.sh hard-codes $HOME, though with luck you may be able to customize the ~/.AndroidStudio2.0/config/options files to point to a shared Android/Sdk directory, unless the software assumes read/write to that directory...

    – thrig
    Apr 25 '16 at 23:27











  • I think the per-user config files would need to be read-write for the users so they could save genuinely individual preferences, like color schemes and so on.

    – asciiphil
    Apr 26 '16 at 13:08











  • Found detailed instructions at this page. Should help anyone reaching here for solution...

    – user370351
    Aug 13 '16 at 7:36

















  • Hmm, looks tricky, as studio.sh hard-codes $HOME, though with luck you may be able to customize the ~/.AndroidStudio2.0/config/options files to point to a shared Android/Sdk directory, unless the software assumes read/write to that directory...

    – thrig
    Apr 25 '16 at 23:27











  • I think the per-user config files would need to be read-write for the users so they could save genuinely individual preferences, like color schemes and so on.

    – asciiphil
    Apr 26 '16 at 13:08











  • Found detailed instructions at this page. Should help anyone reaching here for solution...

    – user370351
    Aug 13 '16 at 7:36
















Hmm, looks tricky, as studio.sh hard-codes $HOME, though with luck you may be able to customize the ~/.AndroidStudio2.0/config/options files to point to a shared Android/Sdk directory, unless the software assumes read/write to that directory...

– thrig
Apr 25 '16 at 23:27





Hmm, looks tricky, as studio.sh hard-codes $HOME, though with luck you may be able to customize the ~/.AndroidStudio2.0/config/options files to point to a shared Android/Sdk directory, unless the software assumes read/write to that directory...

– thrig
Apr 25 '16 at 23:27













I think the per-user config files would need to be read-write for the users so they could save genuinely individual preferences, like color schemes and so on.

– asciiphil
Apr 26 '16 at 13:08





I think the per-user config files would need to be read-write for the users so they could save genuinely individual preferences, like color schemes and so on.

– asciiphil
Apr 26 '16 at 13:08













Found detailed instructions at this page. Should help anyone reaching here for solution...

– user370351
Aug 13 '16 at 7:36





Found detailed instructions at this page. Should help anyone reaching here for solution...

– user370351
Aug 13 '16 at 7:36










2 Answers
2






active

oldest

votes


















0














All libraries required by Android Studio can be shared.



Open your Android Studio instance and go to:



File -> Project Structure 


There you'll see on left pane "SDK Location" entry.
You can set there paths to:



  • Android SDK location

  • JDK location

  • Android NDK location





share|improve this answer


















  • 1





    That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

    – asciiphil
    Apr 26 '16 at 13:05











  • @asciiphil use skel files that set defaults for the studio?

    – thrig
    Apr 26 '16 at 14:03


















0














If you don't want user to manually setup Android Studio setup use skeleton files and create paths for users that links to shared folder.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f772863%2fhow-can-i-install-android-studio-and-the-android-sdk-systemwide-on-a-linux-syste%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    All libraries required by Android Studio can be shared.



    Open your Android Studio instance and go to:



    File -> Project Structure 


    There you'll see on left pane "SDK Location" entry.
    You can set there paths to:



    • Android SDK location

    • JDK location

    • Android NDK location





    share|improve this answer


















    • 1





      That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

      – asciiphil
      Apr 26 '16 at 13:05











    • @asciiphil use skel files that set defaults for the studio?

      – thrig
      Apr 26 '16 at 14:03















    0














    All libraries required by Android Studio can be shared.



    Open your Android Studio instance and go to:



    File -> Project Structure 


    There you'll see on left pane "SDK Location" entry.
    You can set there paths to:



    • Android SDK location

    • JDK location

    • Android NDK location





    share|improve this answer


















    • 1





      That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

      – asciiphil
      Apr 26 '16 at 13:05











    • @asciiphil use skel files that set defaults for the studio?

      – thrig
      Apr 26 '16 at 14:03













    0












    0








    0







    All libraries required by Android Studio can be shared.



    Open your Android Studio instance and go to:



    File -> Project Structure 


    There you'll see on left pane "SDK Location" entry.
    You can set there paths to:



    • Android SDK location

    • JDK location

    • Android NDK location





    share|improve this answer













    All libraries required by Android Studio can be shared.



    Open your Android Studio instance and go to:



    File -> Project Structure 


    There you'll see on left pane "SDK Location" entry.
    You can set there paths to:



    • Android SDK location

    • JDK location

    • Android NDK location






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 26 '16 at 6:51









    FiilFiil

    1011




    1011







    • 1





      That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

      – asciiphil
      Apr 26 '16 at 13:05











    • @asciiphil use skel files that set defaults for the studio?

      – thrig
      Apr 26 '16 at 14:03












    • 1





      That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

      – asciiphil
      Apr 26 '16 at 13:05











    • @asciiphil use skel files that set defaults for the studio?

      – thrig
      Apr 26 '16 at 14:03







    1




    1





    That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

    – asciiphil
    Apr 26 '16 at 13:05





    That's something that each user would have to do individually, which means that I'd have to make sure each of our users read the documentation on "How to Set up Android Studio" beforehand. With the number of people I've got (and the desire many of them will have to just start coding), I think that would be infeasible. I'm looking for a solution that lets the users more or less just click on the menu entry and go, without having to worry about the data locations until they need something unusual.

    – asciiphil
    Apr 26 '16 at 13:05













    @asciiphil use skel files that set defaults for the studio?

    – thrig
    Apr 26 '16 at 14:03





    @asciiphil use skel files that set defaults for the studio?

    – thrig
    Apr 26 '16 at 14:03













    0














    If you don't want user to manually setup Android Studio setup use skeleton files and create paths for users that links to shared folder.






    share|improve this answer



























      0














      If you don't want user to manually setup Android Studio setup use skeleton files and create paths for users that links to shared folder.






      share|improve this answer

























        0












        0








        0







        If you don't want user to manually setup Android Studio setup use skeleton files and create paths for users that links to shared folder.






        share|improve this answer













        If you don't want user to manually setup Android Studio setup use skeleton files and create paths for users that links to shared folder.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 27 '16 at 6:07









        FiilFiil

        1011




        1011



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f772863%2fhow-can-i-install-android-studio-and-the-android-sdk-systemwide-on-a-linux-syste%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?