Tutorial on turning off the sound when starting up an Apple computer

WBOY
Release: 2024-01-07 22:46:17
forward
1635 people have browsed it

When an Apple computer is turned on, there will be a "boom" sound, which is sometimes very scary and meaningless. So how to turn off the sound when the Apple computer turns on? We only need to use the command in the terminal to turn it off.

How to turn off the startup sound of Apple computers:

1. First, click on the "little rocket" button in the dock bar at the bottom.

Tutorial on turning off the sound when starting up an Apple computer

#2. Then open the "Other" folder.

Tutorial on turning off the sound when starting up an Apple computer

3. Then we open the “Terminal”

Tutorial on turning off the sound when starting up an Apple computer

4. After opening, we first enter “sudo vim /Library/Scripts/sound-off.sh" and press Enter to open the text editor.

Tutorial on turning off the sound when starting up an Apple computer

#5. Then we enter the following command in the text editor (note that the format is maintained). After the input is completed, save the text editor and exit.

#!/bin/bash
osascript -e 'set volume output muted 1'

Tutorial on turning off the sound when starting up an Apple computer

6. Then open the terminal and enter "sudo vim /Library/Scripts/sound-on.sh" to open the text.

7. This time enter in the text:

#!/bin/bash
osascript -e 'set volume 5'

Tutorial on turning off the sound when starting up an Apple computer

##8. After saving, open the terminal and enter "sudo chmod u x /Library/Scripts/sound-off.sh" and "sudo chmod u x /Library/Scripts/sound-on.sh"

9. Press Enter and then enter "sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/sound-off.sh"

10. Finally enter "sudo defaults write com.apple.loginwindow LoginHook /Library /Scripts/sound-on.sh" and press Enter to turn off the startup sound.

Tutorial on turning off the sound when starting up an Apple computer

The above is the detailed content of Tutorial on turning off the sound when starting up an Apple computer. For more information, please follow other related articles on the PHP Chinese website!

source:somode.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template