How can I enable user home folder persistence for the Linux applications that we host using AppStream 2?

0

We have a handful of apps for users to consume in AppStream 2 that are running on Amazon Linux 2. I'd love to be able to offer users a persistent home folder similar to our Windows applications. Is this possible?

demandé il y a un an582 vues
1 réponse
1
Réponse acceptée

Home folders are supported on Windows and Linux based fleets. https://docs.aws.amazon.com/appstream2/latest/developerguide/home-folders.html

You can enable home folders in the stack settings. From the documentation:

Home folders are stored on fleet instances in the following default locations:

  • Non-domain-joined Windows instances: C:\Users\PhotonUser\My Files\Home Folder
  • Domain-joined Windows instances: C:\Users%username%\My Files\Home Folder
  • Linux instances: ~/MyFiles/HomeFolder
profile pictureAWS
répondu il y a un an
profile pictureAWS
EXPERT
kentrad
vérifié il y a un an
  • This was super helpful, thanks to this link, I was able to configure a couple apps - DBeaver and Oracle SQL Developer in our stack for our SQL developers/DBAs to write to these paths via env variables and command line arguments.

    For those curious:

    AppStreamImageAssistant list-applications

    { "status": 0, "message": "Success", "applications": [ { "Name": "Terminal", "AbsoluteAppPath": "/usr/bin/gnome-terminal", "AbsoluteIconPath": "/usr/share/icons/gnome/256x256/apps/utilities-terminal.png" }, { "Name": "DBeaver", "AbsoluteAppPath": "/usr/bin/dbeaver-ce", "AbsoluteIconPath": "/usr/share/dbeaver-ce/dbeaver.png", "LaunchParameters": "-data /home/as2-streaming-user/MyFiles/HomeFolder/DBeaver" }, { "Name": "SQL_Developer", "AbsoluteAppPath": "/usr/bin/gnome-terminal", "AbsoluteIconPath": "/opt/sqldeveloper/icon.png", "LaunchParameters": "-- sqldeveloper'" } ] }

    I also patched in an environment variable in /etc/profile.d/sqldeveloper.sh and /opt/sqldeveloper/sqldeveloper.sh, like so: export IDE_USER_DIR="$HOME/MyFiles/HomeFolder/SQL_Developer"

    Worked like a charm!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions