[精讚] [會員登入]
288

how to stop mac os startup sound permanently

how to stop mac os startup sound permanently

分享此文連結 //n.sfs.tw/13018

分享連結 how to stop mac os startup sound permanently@der amateur
(文章歡迎轉載,務必尊重版權註明連結來源)
2021-03-30 21:30:29 最後編修
2019-01-09 23:31:02 By
 

every time when mac os boots or startups from shutdown situation,

the mac os will play a loud "pong" sound as reminder,

you can temperally mute this sound by pressing the F10 function button,

however, in order to terminate it for good,

I tried several ways, finally this one did the work,

here it is,

first of all, start a terminal window when you login to mac os,

try press "command+space", to use spotlight search,

in your terminal window, make two bash files,

$ sudo nano /Library/Scripts/sound-off.sh

inside the sound-off.sh, save these contents:

#!/bin/bash

osascript -e 'set volume output muted 1'

###

and save those to sound-on.sh in the same directory, which is "/Library/Scripts/"

#!/bin/bash

osascript -e 'set volume 4'

###

then make these two scripts have the privilege to execute by using "chmod"

$ sudo chmod u+x /Library/Scripts/sound-on.sh

$ sudo chmod u+x /Library/Scripts/sound-off.sh

at last, make these actions to active in mac os by using:

$ sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/sound-off.sh

$ sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/sound-on.sh

these steps did work on mac os mojave 10.14.2

or you can just download a free app from App store called "Silent Start"

if you decided to use Silent Start, you can still undo the write defaults above by execute these commands:

$ sudo defaults delete com.apple.loginwindow LogoutHook

$ sudo defaults delete com.apple.loginwindow LoginHook

 

END

你可能感興趣的文章

how to stop mac os startup sound permanently how to stop mac os startup sound permanently

how to deal with ubuntu 18.04 network issues bring up different ethernet interfaces on installed ubuntu18.04, then fix yaml indentation problem

steps to pass-through usb smart card reader for virtualbox how to pass through usb-smart-card-reader from ubuntu host to virtualbox vm

how to install teamviewer on ubuntu linux 18.04 LTS install teamviewer by using deb file

dealing with virtualbox installation on ubuntu 22.04LTS trouble shooting on virtualbox installation

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

steps to pass-through usb smart card reader for virtualbox how to pass through usb-smart-card-reader from ubuntu host to virtualbox vm