[RESOLVED] Script to load sound drivers and play welcome at login

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
Jakob77
Posts: 623
Joined: Thu Feb 09, 2023 3:09 am

Re: Script to load sound drivers and play welcome at login

#11 Post by Jakob77 »

swarfendor437

I don't know KDE and I only understand half of your talk.
But it looks to me that you now are trying to run a local sound file, and I believe that is better for boot up than something from a cloud.

If you just run the command as a one liner in Terminal:

Code: Select all

play /usr/share/sounds/system-ready.ogg
Does it give you the sound you want.?

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#12 Post by swarfendor437 »

Hi, I linked the file to the cloud so you could hear it. It resides in /usr/share/sounds together with desktop-login.ogg and desktop-logout.ogg. I am trying to get it to play at login and it needs an rc script to be placed here:



I tried to reinstall the sddm-lain theme but without success as I had previously - should not have deleted it and should have read the rc script before removing it!
You do not have the required permissions to view the files attached to this post.

Jakob77
Posts: 623
Joined: Thu Feb 09, 2023 3:09 am

Re: Script to load sound drivers and play welcome at login

#13 Post by Jakob77 »

swarfendor437

I guess it takes a password to hear the sound. But I was just thinking that if the Terminal command works, then you could maybe make it a session start command and avoid it in the script. But I see it is not your wish and there is more to it, and I consider dealing with outdated programs a risk, so I better leave you and hope someone who knows KDE and the software comes by. :-)

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#14 Post by swarfendor437 »

Hi Jakob77, Thanks for replying. No a password is not needed to play the sound, the sound plays when the login screen appears, prompting user to identify themselves, basically a verbal request to enter username and/or password. I am also wondering if it is dependent on Gnome DE as Ultimate Edition Oz was a fork of Ultimate Edition, both forks of Ubuntu. Ultimate Edition Oz B-II was based off Ubuntu 13.10, a step-release not an LTS one.
Last edited by swarfendor437 on Fri Nov 24, 2023 8:02 am, edited 1 time in total.

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: Script to load sound drivers and play welcome at login

#15 Post by davidy »

Your original link , murena.io/apps/files/?dir=/Music&openfile=153366389,
does not play anything whatsoever. It's possible your browser, which has previously logged in, has either the cookies or the certs required to trigger the file. Everybody else? crickets
I know with xfce, it has a startup sound configuration that points to a file but I have never heard it even once and thought about trying to configure it but never bothered.
TBQH I'm still amazed you can now talk to your phone (without internet access) and it will type for you. Modern high-end computers? Crickets. What a joke. IBM ViaVoicePro and one other I can't recall would do this but I never pursued it beyond the basic installation because windows was so full of itself to begin with I didn't have the time. This was done on purpose because they think google should be your goto for everything. Unfortunately without internet google is useless overall.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#16 Post by swarfendor437 »

Well I have solved the issue! I am also running KDE Neon on another drive. Installed virt-manager and installed Zorin 16.3 as a VM that uses the Gnome DE. I then followed this advice:

https://askubuntu.com/questions/1348799 ... n-in-20-04

So I went into /user/share/sounds/Ubuntu/stereo and replaced the old drum-roll with the .ogg file (There must be something wrong with your audio as it works on and offline - did you bother to download it?) quoted earlier so got that sorted. Within the VM of Zorin I installed via Synaptic, kde-full (it installs Plasma 5.18) and added the system-login.ogg and system-logout.ogg all from Ultimate Edition Oz Diamond B-II based on Ubuntu 13.10. Sorted. Basically, SDDM has to be replaced with lightdm as a starting point. Welcome screen is stuck with old Ubuntu wallpaper but there will be a way round this I am sure. Thanks for everyone's input.

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: [RESOLVED] Script to load sound drivers and play welcome at login

#17 Post by swarfendor437 »

Changed post to [RESOLVED] as I have not achieved the desired result in MX-Linux as to reach this goal needs Gnome to be present, make the changes in Gnome DE, and it does incur using LightDM over SDDM which brings about a pyrrhic victory. Tried this with KDE neon as did not want to mess up my MX-Linux KDE. When I tried it in neon, sure got the welcome sound but after entering credentials, took me to neon login which stuck there. Only way in was to use Wayland! If you want to view my results of it working on VM of Zorin here is the video:

https://vimeo.com/888469720

Post Reply

Return to “General”