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?

已提問 1 年前檢視次數 547 次
1 個回答
1
已接受的答案

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
已回答 1 年前
profile pictureAWS
專家
kentrad
已審閱 1 年前
  • 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!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南