Subject: Re:Beep me no beep.
To: None <rauch@rice.edu>
From: Sung N. Cho <sucho2@vt.edu>
List: netbsd-help
Date: 06/20/2002 02:15:24
Hi,
To turn the beeps off in console,
/sbin/wsconsctl -w bell.pitch=3D0=09=09 # Kill's the annoying bell pitch
I created a sh file and run it from /etc/rc.local automatically.
NetBSD's volume is also too high for me, so I do
/usr/bin/mixerctl -w outputs.master=3D120 # Turn's the volume down
Also, NetBSD by default mutes the audio channel. So I enable the audio=20
channel by:
/usr/bin/mixerctl -w inputs.cd.mute=3Doff # Disable's the Audio CD mute
Here's my sh script:
----------------------------
#!/bin/sh
# This file is called `localinit`
# Sung's scripts in further customizing NetBSD
#########################################
# Misc tuneups=09=09=09=09#
#########################################
/sbin/wsconsctl -w bell.pitch=3D0=09=09 # Kill the annoying bell pitch
/usr/bin/mixerctl -w outputs.master=3D120 # Turn the volume down
/usr/bin/mixerctl -w inputs.cd.mute=3Doff # Disable the Audio CD mute
################################################
# Allow ordinary users to mount floppy & cdrom #
################################################
sysctl -w vfs.generic.usermount=3D1
chmod 0777 /dev/fd0a # Allow anyone to read, write to or from floppy
chmod 0777 /dev/cd0a
chmod 0777 /dev/cd1a
---------------------------------------
I called this script, "localinit". Make sure to chmod to executable and =
root=20
owned!
# chown root localinit
# chmod u+x localinit
I have local directory called, /home/uetc/urc.d
This is where I store all the executables for /etc/rc.local.
So I would have localinit in this directory. To have this executed every=
time=20
automatically as I boot NetBSD, I've added it in /etc/rc.local file.
Here's my /etc/rc.local file:
--------------------
if [ -f /home/uetc/urc.d/localinit ]; then
/home/uetc/urc.d/localinit start
fi
if [ -f /usr/X11R6/bin/kdm ]; then
/usr/X11R6/bin/kdm start
fi
echo '.'
--------------------
Yours sincerely,
Sung N. Cho,
Thursday, June 20, 2002.