A lot of updates
This commit is contained in:
parent
bfb13bba87
commit
5a00576211
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# battery-status.ksh
|
||||
# Display the batteries status.
|
||||
# battery-status
|
||||
# This program displays the batteries status.
|
||||
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# check-pkg.ksh
|
||||
# Check installed packages for any problems.
|
||||
# check-package
|
||||
# This program checks installed packages for any problems.
|
||||
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org)
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# config-admin.ksh
|
||||
# Add a admin user to the operator, staff, and wheel groups.
|
||||
# config-admin
|
||||
# This program adds an admin user to the operator, staff, and wheel groups.
|
||||
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,8 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# config-doas.ksh
|
||||
# Configure doas so that users in the wheel group can run it.
|
||||
# config-doas
|
||||
# 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).
|
||||
# All rights reserved.
|
||||
|
34
config-emacs
Executable file
34
config-emacs
Executable 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
|
@ -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
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# config-gcc.ksh
|
||||
# This script creates a GCC symbolic link. Note, at this time this is
|
||||
# config-gcc
|
||||
# This program creates a gcc symbolic link. Note, at this time this is
|
||||
# unnecessary, as the package manager now handles this properly.
|
||||
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
@ -30,7 +30,7 @@
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Create a GCC symbolic link
|
||||
# Create a gcc symbolic link
|
||||
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."
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# config-mosh.ksh
|
||||
# Configure the user profile so that Mosh works.
|
||||
# config-mosh
|
||||
# This program configures the user profile so that mosh works.
|
||||
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
||||
@ -30,6 +30,6 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
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
|
@ -1,8 +1,8 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# config-power.ksh
|
||||
# Configure the Advanced Power Management daemon to put the computer in suspend
|
||||
# mode when 15% of the battery is left.
|
||||
# config-power
|
||||
# This program configures the apm daemon to suspend the computer when 15% of
|
||||
# the battery is left.
|
||||
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# config-resources.ksh
|
||||
# This script configures system resources.
|
||||
# config-resources
|
||||
# This program configures system processes, threads, and files.
|
||||
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
||||
@ -9,10 +9,10 @@
|
||||
# without modification, are permitted provided that the following conditions
|
||||
# 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.
|
||||
|
||||
# * 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
|
||||
# this software without specific prior written permission of Scott C.
|
||||
# MacCallum.
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# install-gui-pkg.ksh
|
||||
# Install graphical user interface packages.
|
||||
# install-gui-pkg
|
||||
# This program installs GUI packages.
|
||||
# Copyright (c) 2023, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# install-pkg.sh
|
||||
# Install text-based packages.
|
||||
# install-pkg
|
||||
# This program installs text-based packages.
|
||||
# Copyright (c) 2022, 2023, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# run-sshd.ksh
|
||||
# Start the Secure Shell daemon.
|
||||
# run-sshd
|
||||
# This program starts the ssh daemon.
|
||||
# Copyright (c) 2022, 2023, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# search-pkg.ksh
|
||||
# Search for a package.
|
||||
# Copyright (c) 2022, 2023, Scott C. MacCallum (scm@sdf.org).
|
||||
# search-package
|
||||
# This programs searchs for a package.
|
||||
# Copyright (c) 2022, 2023, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
||||
# Redistribution and use of this software in source and binary forms, with or
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# unmute-speak.ksh
|
||||
# Unmute the speaker.ksh
|
||||
# unmute-speak
|
||||
# This program unmutes the speaker.
|
||||
# Copyright (c) 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
||||
@ -32,6 +32,4 @@
|
||||
# Unmute the speaker
|
||||
echo "outputs.spkr_mute=off" >> /etc/mixerctl.conf
|
||||
|
||||
# See if it's possible to put this into effect without a reboot
|
||||
|
||||
exit 0
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# volume-down.ksh
|
||||
# Adjust the sound volume down.
|
||||
# volume-down
|
||||
# This program make the sound softer.
|
||||
# Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/ksh
|
||||
|
||||
# volume-up.ksh
|
||||
# Adjust the sound volume up.
|
||||
# volume-up
|
||||
# This program makes the sound louder.
|
||||
# Copyright (c) 2022, 2024, Scott C. MacCallum (scm@sdf.org).
|
||||
# All rights reserved.
|
||||
|
||||
@ -32,4 +32,3 @@
|
||||
sndioctl output.level=+0.1
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user