How do I enable system sounds?
Enable Sound Effects
In addition to turning ON Alert volume from System Settings... > Hardware > Sound > Sound effects;
1) Install Ubuntu Tweak (For more info: www.webupd8.org/2012/11/ubuntu-tweak-gets-full-ubuntu-1210.html)
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
2) Go to Tweaks > Sound
3) Enable Event sounds / Input feedback and select a Sound theme, e.g. Ubuntu studio...
Enable Login Sound
To enable the old login sound, you need to add a new entry to your startup programs:
- Open
Startup Applications
from the dash - Click Add
- In the "Command:" line, enter the following command:
/usr/bin/canberra-gtk-play --id="desktop-login" --description="play login sound"
- The name and comment aren't necessary, but it may be helpful to name it something like "Login Sound" so you can identify it later if necessary.
- Click Save
That's it! You should hear the familiar login sound next time you log in.
Related videos on Youtube
Mephobia
Updated on September 18, 2022Comments
-
Mephobia almost 2 years
Does anyone know why I can request a URL via webbrowser, but not via http webrequest (GET) in PHP? On my VPS I have an HTTP listener listening on a certain port. When I request the URL, Port, and Path from my browser it works fine, but when I request the URL, Port, and Path from a PHP web request it does not work.
I tried using cURL and a few other methods such as http_get, but none of them seem to work. I think it may have to do with my headers, but I'm not entirely sure. Does anyone have any idea? If you do, please post them.
Here is my current code:
<?php $url = 'URL'; try { $response = fetchUrl($url); echo $response; } catch (Exception $e) { error_log('Fetch URL failed: ' . $e->getMessage() . ' for ' . $url); } function fetchUrl($uri) { $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $uri); curl_setopt($handle, CURLOPT_POST, false); curl_setopt($handle, CURLOPT_BINARYTRANSFER, false); curl_setopt($handle, CURLOPT_HEADER, true); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 10); $response = curl_exec($handle); $hlength = curl_getinfo($handle, CURLINFO_HEADER_SIZE); $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE); $body = substr($response, $hlength); // If HTTP response is not 200, throw exception if ($httpCode != 200) { throw new Exception($httpCode); } return $body; } ?>
Thanks
-
Admin over 11 yearsI miss 'em too. Sometimes, I pass by somewhere and hear the Windows welcome. I Googled a bit and got the impression that sounds have fallen out of favor.
-
-
ananaso over 11 yearsThat had enabled my sound effects (Thanks so much!), but not the old login sound. Luckily, that was only a google search away, and it's fairly simple to add!