Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have login sounds on my now modern Lubuntu (using LXQt), and did so with legacy Lubuntu (ie. LXDE), as KGIII mentioned, we currently don't know what you're using so can't offer any guidance.... If you're talking about modern Lubuntu, you can see autostart functions in the manual - manual.lubuntu.me/stable/3/3.2/3.2.13/…paplay can be used to use pulse-audio to play a sound... (other events would need more that I provided)
paplay
can be used to use pulse-audio to play a sound... (other events would need more that I provided)