Page 1 of 1
[RESOLVED] Script to load sound drivers and play welcome at login
Posted: Mon Nov 06, 2023 3:40 pm
by swarfendor437
I've tried to run an old copy of UltimateEditionOz Diamond B-II in live mode but it won't run on my 'modern' desktop. For someone with a severe vision impairment, a human voice is much nicer than robotic one from Orca, and yes I am aware it has moved on, with my favourite voice being Hugo. However, I am not in need of Orca, but might be whenever cateracts might occur as a temporary measure. What I would like to hear was the greeting at the logon of said distro from quite a few years back to play this:
https://murena.io/apps/files/?dir=/Musi ... =153366389
Just to add I am running MX-Linux KDE 23.1 KDE and have the desktop-login.ogg and desktop-logout.ogg working. I was hoping I could get the system-ready.ogg working at logon with the Authentication option in notifications option. I did experiment with an old theme, called 'lain' (
https://gitlab.com/mixedCase/sddm-lain-wired-theme) and deleted it in error as it had an rc script to play a login sound. Wondered if I could tweak the script to play the system-ready.ogg by naming it the same name as the link to lain and replace but would prefer an rc script to run at boot to achieve this, so you can tell already I am no coder!
Re: Script to load sound drivers and play welcome at login
Posted: Mon Nov 06, 2023 3:52 pm
by CharlesV
I believe there are a could of methods to do this:
first - the theme you choose can have sounds, so you can usually change your sound in the theme you have selected.
second - you can setup a script to play anything you want at login. Using the play command and your sound file.
Re: Script to load sound drivers and play welcome at login
Posted: Mon Nov 06, 2023 4:09 pm
by swarfendor437
Hi CharlesV,
Thanks for the reply.
Yes I am aware of the play command, it is just compiling the script that is the issue for me. Where to start? Do I use Kate/Nano? And also how to load the drivers for the SoundBlaster Audigy RX before system startup?
I have looked at other themes, and not many with sound - having looked at other forums, there is antagonism toward having any sound at login as it would appear to be mimicking that other OS!
Re: Script to load sound drivers and play welcome at login
Posted: Mon Nov 06, 2023 4:13 pm
by CharlesV
I take it your using KDE?
Re: Script to load sound drivers and play welcome at login
Posted: Mon Nov 06, 2023 4:43 pm
by swarfendor437
Yes I am. It is a brilliant implementation of Plasma, much better than KDE Neon which I have on another drive.
Re: Script to load sound drivers and play welcome at login
Posted: Mon Nov 06, 2023 4:51 pm
by CharlesV
Then the simplest method.. is to :
System Settings > Notifications > Applications > Plasma Workspace > Configure Events > Login
Then choose the sound / file you want to play. The selection dialog will start in /usr/share/sounds and you can choose anything, from any location, or copy your file out to there. ( The are some cool sounds already in the Borealis area too. )
Only caveat, your sound file needs to be an OGG or WAV format.
Re: Script to load sound drivers and play welcome at login
Posted: Tue Nov 07, 2023 3:30 am
by swarfendor437
Hi, That setting is for playing sound after you have logged in, not the login screen. Remember when Ubuntu used to have an African drum sound at login?
Re: Script to load sound drivers and play welcome at login
Posted: Tue Nov 07, 2023 11:33 am
by CharlesV
Ah I see... Well... I remember seeing some code in the plymouth setup about playing sound, but as you pointed out it is going to depend upon when your sound drivers start kicking in. If I have a chance this week I will see if I can get some sound happening at that level.
Re: Script to load sound drivers and play welcome at login
Posted: Tue Nov 07, 2023 4:44 pm
by swarfendor437
I've done some more browsing and found this but don't know if this is old i.e., whether KDM is still there:
https://www.maketecheasier.com/run-star ... de-starts/
Will see how far I get!
Re: Script to load sound drivers and play welcome at login
Posted: Wed Nov 08, 2023 5:10 am
by swarfendor437
Well should have remembered that SDDM replaced KDM. Found Xsetup and tried to add
Code: Select all
a play /usr/share/sounds/system-ready.ogg
but no joy.
Re: Script to load sound drivers and play welcome at login
Posted: Thu Nov 09, 2023 2:47 am
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.?
Re: Script to load sound drivers and play welcome at login
Posted: Sat Nov 11, 2023 5:22 pm
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!
Re: Script to load sound drivers and play welcome at login
Posted: Sat Nov 11, 2023 6:50 pm
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. :-)
Re: Script to load sound drivers and play welcome at login
Posted: Sun Nov 12, 2023 5:20 am
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.
Re: Script to load sound drivers and play welcome at login
Posted: Wed Nov 15, 2023 9:36 am
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.
Re: Script to load sound drivers and play welcome at login
Posted: Thu Nov 23, 2023 8:13 pm
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.
Re: [RESOLVED] Script to load sound drivers and play welcome at login
Posted: Mon Nov 27, 2023 4:59 am
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