{"id":6203,"date":"2016-09-05T09:50:56","date_gmt":"2016-09-05T09:50:56","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=6203"},"modified":"2016-09-05T09:50:56","modified_gmt":"2016-09-05T09:50:56","slug":"play-login-sound-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2016\/09\/play-login-sound-ubuntu-16-04\/","title":{"rendered":"How to Enable and Play a Login Sound in Ubuntu 16.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/switch-between-sound-sources-devices.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2015\/11\/switch-between-sound-sources-devices.png\" alt=\"play login sound\" width=\"245\" height=\"250\" class=\"alignleft size-full wp-image-5392\" \/><\/a><\/p>\n<p>Ubuntu 16.04 does not play a startup \/ login sound in my laptop, but it&#8217;s easy to play a sound at login and customize the sound file by adding a new startup program using <b>Startup Applications<\/b> utility.<\/p>\n<p>And below steps will show you how:<\/p>\n<p>1. Launch <b>Startup Applications<\/b> utility from the Dash.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/launch-startup-applications.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/launch-startup-applications.jpg\" alt=\"launch-startup-applications\" width=\"456\" height=\"248\" class=\"aligncenter size-full wp-image-6204\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/launch-startup-applications.jpg 456w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/launch-startup-applications-450x244.jpg 450w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><\/p>\n<p>2. When it opens, click <b>Add<\/b> to add a new startup program and:<\/p>\n<ul>\n<li>Type any word in <b>Name<\/b> and <b>Comment<\/b> boxes.\n<li>For the <b>Command<\/b> box, paste below line to play the default Gnome login sound:\n<pre style=\"border:none;\">\/usr\/bin\/canberra-gtk-play --id=\"desktop-login\" --description=\"GNOME Login\"<\/pre>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-login-sound.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-login-sound-600x356.jpg\" alt=\"Play Login Sound \" width=\"600\" height=\"356\" class=\"aligncenter size-large wp-image-6205\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-login-sound-600x356.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-login-sound-450x267.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-login-sound.jpg 619w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. To play any other <b>.ogg<\/b>, <b>.oga<\/b>, or <b>.wav<\/b> sound at login, you can use <code>paplay<\/code> command in the <b>Command<\/b> box. <\/p>\n<p>For example:<\/p>\n<pre style=\"border:none;\">paplay \/home\/handbook\/Audio\/linux-startup.ogg<\/pre>\n<pre style=\"border:none;\">paplay \/usr\/share\/sounds\/purple\/login.wav<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-custom-sound.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-custom-sound.jpg\" alt=\"play custom sound at login\" width=\"600\" height=\"333\" class=\"aligncenter size-full wp-image-6206\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-custom-sound.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/play-custom-sound-450x249.jpg 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After saved the changes, you&#8217;ll hear the sound at next login.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ubuntu 16.04 does not play a startup \/ login sound in my laptop, but it&#8217;s easy to play a sound at login and customize the sound file by adding a new startup program using Startup Applications utility. And below steps will show you how: 1. Launch Startup Applications utility from the Dash. 2. When it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1376,1375],"class_list":["post-6203","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-custom-login-sound","tag-login-sound"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=6203"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6203\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=6203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=6203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=6203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}