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 年前578 查看次数
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!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则