A lot of updates

This commit is contained in:
Scott C. MacCallum 2024-03-16 16:29:50 -04:00
parent bfb13bba87
commit 5a00576211
19 changed files with 71 additions and 78 deletions

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# battery-status.ksh # battery-status
# Display the batteries status. # This program displays the batteries status.
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# check-pkg.ksh # check-package
# Check installed packages for any problems. # This program checks installed packages for any problems.
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org) # Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org)
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# config-admin.ksh # config-admin
# Add a admin user to the operator, staff, and wheel groups. # This program adds an admin user to the operator, staff, and wheel groups.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,8 @@
#!/bin/ksh #!/bin/ksh
# config-doas.ksh # config-doas
# Configure doas so that users in the wheel group can run it. # This program configures /etc/doas.conf to allow users in the wheel group
# to run it.
# Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

34
config-emacs Executable file
View File

@ -0,0 +1,34 @@
#!/bin/ksh
# config-emacs
# This program configures wsconsctl.conf so that the alt key works properly.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved.
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Neither the name of Scott C. MacCallum nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission of Scott C.
# MacCallum.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
echo "keyboard.encoding=us.metaesc" >> /etc/wsconsctl.conf
exit 0

View File

@ -1,39 +0,0 @@
#!/bin/ksh
# config-emacs.ksh
# Configure wsconsctl.conf so that the alt key works properly.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved.
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Neither the name of Scott C. MacCallum nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission of Scott C.
# MacCallum.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# Write some code here later that checks if this script has been run by a
# super user
echo "keyboard.encoding=us.metaesc" >> /etc/wsconsctl.conf
# Write some code here that puts the changes into effect without the need of
# a reboot
exit 0

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# config-gcc.ksh # config-gcc
# This script creates a GCC symbolic link. Note, at this time this is # This program creates a gcc symbolic link. Note, at this time this is
# unnecessary, as the package manager now handles this properly. # unnecessary, as the package manager now handles this properly.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.
@ -30,7 +30,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE. # POSSIBILITY OF SUCH DAMAGE.
# Create a GCC symbolic link # Create a gcc symbolic link
ln -s /usr/local/bin/egcc /usr/bin/gcc ln -s /usr/local/bin/egcc /usr/bin/gcc
echo -n "A symbolic link from /usr/local/bin/egcc to /usr/bin/gcc has been created." echo -n "A symbolic link from /usr/local/bin/egcc to /usr/bin/gcc has been created."

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# config-mosh.ksh # config-mosh
# Configure the user profile so that Mosh works. # This program configures the user profile so that mosh works.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.
@ -30,6 +30,6 @@
# POSSIBILITY OF SUCH DAMAGE. # POSSIBILITY OF SUCH DAMAGE.
echo "export LC_CTYPE=en_US.UTF-8" >> /home/$USER/.profile echo "export LC_CTYPE=en_US.UTF-8" >> /home/$USER/.profile
echo "Mosh should work now. Exit and login again for changes to take effect." echo "Done. Exit and login again for the change to take effect."
exit 0 exit 0

View File

@ -1,8 +1,8 @@
#!/bin/ksh #!/bin/ksh
# config-power.ksh # config-power
# Configure the Advanced Power Management daemon to put the computer in suspend # This program configures the apm daemon to suspend the computer when 15% of
# mode when 15% of the battery is left. # the battery is left.
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# config-resources.ksh # config-resources
# This script configures system resources. # This program configures system processes, threads, and files.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.
@ -9,10 +9,10 @@
# without modification, are permitted provided that the following conditions # without modification, are permitted provided that the following conditions
# are met: # are met:
# * Redistributions of source code must retain the above copyright notice, # * Redistribution's of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer. # this list of conditions and the following disclaimer.
# * Neither the name of Scott C. MacCallum nor the names of its # * Neither the name of Scott C. McCall nor the names of its
# contributors may be used to endorse or promote products derived from # contributors may be used to endorse or promote products derived from
# this software without specific prior written permission of Scott C. # this software without specific prior written permission of Scott C.
# MacCallum. # MacCallum.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# install-gui-pkg.ksh # install-gui-pkg
# Install graphical user interface packages. # This program installs GUI packages.
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# install-pkg.sh # install-pkg
# Install text-based packages. # This program installs text-based packages.
# Copyright (c) 2022, 2023, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2022, 2023, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# run-sshd.ksh # run-sshd
# Start the Secure Shell daemon. # This program starts the ssh daemon.
# Copyright (c) 2022, 2023, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2022, 2023, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,8 +1,8 @@
#!/bin/ksh #!/bin/ksh
# search-pkg.ksh # search-package
# Search for a package. # This programs searchs for a package.
# Copyright (c) 2022, 2023, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2022, 2023, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.
# Redistribution and use of this software in source and binary forms, with or # Redistribution and use of this software in source and binary forms, with or

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# unmute-speak.ksh # unmute-speak
# Unmute the speaker.ksh # This program unmutes the speaker.
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.
@ -32,6 +32,4 @@
# Unmute the speaker # Unmute the speaker
echo "outputs.spkr_mute=off" >> /etc/mixerctl.conf echo "outputs.spkr_mute=off" >> /etc/mixerctl.conf
# See if it's possible to put this into effect without a reboot
exit 0 exit 0

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# volume-down.ksh # volume-down
# Adjust the sound volume down. # This program make the sound softer.
# Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.

View File

@ -1,7 +1,7 @@
#!/bin/ksh #!/bin/ksh
# volume-up.ksh # volume-up
# Adjust the sound volume up. # This program makes the sound louder.
# Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org). # Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org).
# All rights reserved. # All rights reserved.
@ -32,4 +32,3 @@
sndioctl output.level=+0.1 sndioctl output.level=+0.1
exit 0 exit 0