Many changes
This commit is contained in:
parent
7c954d587f
commit
4175aa67c2
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# battery.ksh
|
# battery.ksh
|
||||||
# Display the batteries status
|
# Display the batteries status.
|
||||||
# Copyright (c) 2023, Scott C. MacCallum (scm@sdf.org)
|
# Copyright (c) 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
|
||||||
|
4
check-pkg.ksh
Normal file → Executable file
4
check-pkg.ksh
Normal file → Executable file
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# check-pkg.ksh
|
# check-pkg.ksh
|
||||||
# Check installed packages for any problems
|
# Check installed packages for any problems.
|
||||||
# Copyright (c) 2023, Scott C. MacCallum (scm@sdf.org)
|
# Copyright (c) 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
|
||||||
|
39
config-admin.ksh
Executable file
39
config-admin.ksh
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/ksh
|
||||||
|
|
||||||
|
# config-admin.ksh
|
||||||
|
# Add a admin user to the operator, staff, and wheel groups.
|
||||||
|
# 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 -n "User to be added to the operator, staff, and wheel groups: "
|
||||||
|
read user
|
||||||
|
|
||||||
|
usermod -G operator $user
|
||||||
|
usermod -G staff $user
|
||||||
|
usermod -G wheel $user
|
||||||
|
|
||||||
|
exit 0
|
12
enable-apmd.ksh → config-apmd.ksh
Normal file → Executable file
12
enable-apmd.ksh → config-apmd.ksh
Normal file → Executable file
@ -1,9 +1,9 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# enable-apmd.ksh
|
# config-apmd.ksh
|
||||||
# Enable the Advanced Power Management daemon with settings that prevent
|
# Configure the Advanced Power Management daemon to put the computer in suspend
|
||||||
# the battery from running out before a proper shutdown
|
# mode when 15% of the battery is left.
|
||||||
# Copyright (c) 2023, Scott C. MacCallum (scm@sdf.org)
|
# Copyright (c) 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
|
||||||
@ -30,10 +30,6 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
# Enable the power manager and start it at boot. Have it adjust automatically
|
|
||||||
# to power needs. Put the computer in suspend mode when 15% of the battery is
|
|
||||||
# left.
|
|
||||||
|
|
||||||
rcctl enable apmd
|
rcctl enable apmd
|
||||||
rcctl set apmd flags -A -z 15
|
rcctl set apmd flags -A -z 15
|
||||||
rcctl start apmd
|
rcctl start apmd
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# doas-config.ksh
|
# config-doas.ksh
|
||||||
# Copyright (c) 2022, Scott C. MacCallum (scm@sdf.org)
|
# Configure doas so that users in the wheel group can run it.
|
||||||
|
# Copyright (c) 2022, 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
|
||||||
@ -28,10 +29,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.
|
||||||
|
|
||||||
# Enable the doas ability for those that are in the wheel group
|
|
||||||
|
|
||||||
echo "permit :wheel" >> /etc/doas.conf
|
echo "permit :wheel" >> /etc/doas.conf
|
||||||
|
echo "Users that are in the wheel group can now run doas."
|
||||||
echo "Those that are in the wheel group now have doas ability."
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# install-gui-pkg.ksh
|
# install-gui-pkg.ksh
|
||||||
# Install graphical user interface packages
|
# Install graphical user interface packages.
|
||||||
# Copyright (c) 2023, Scott C. MacCallum (scm@sdf.org)
|
# Copyright (c) 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
|
||||||
@ -29,20 +29,6 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
# Install the following GUI packages
|
|
||||||
|
|
||||||
<<<<<<< Updated upstream:install-gui-pkg.ksh
|
|
||||||
#pkg_add audacity
|
|
||||||
#pkg_add blender
|
|
||||||
#pkg_add chromium
|
|
||||||
#pkg_add filezilla
|
|
||||||
#pkg_add firefox
|
|
||||||
#pkg_add gimp
|
|
||||||
#pkg_add libreoffice
|
|
||||||
#pkg_add thunderbird
|
|
||||||
#pkg_add vlc
|
|
||||||
#pkg_add wireshark
|
|
||||||
=======
|
|
||||||
pkg_add audacity
|
pkg_add audacity
|
||||||
pkg_add blender
|
pkg_add blender
|
||||||
pkg_add chromium
|
pkg_add chromium
|
||||||
@ -53,6 +39,5 @@ pkg_add libreoffice
|
|||||||
pkg_add thunderbird
|
pkg_add thunderbird
|
||||||
pkg_add vlc
|
pkg_add vlc
|
||||||
pkg_add wireshark
|
pkg_add wireshark
|
||||||
>>>>>>> Stashed changes:install-gui-pkg.sh
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# install-pkg.sh
|
# install-pkg.sh
|
||||||
# Install shell packages
|
# Install 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.
|
||||||
|
|
||||||
# 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
|
||||||
@ -29,53 +29,50 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
# Install the following shell packages
|
pkg_add alpine
|
||||||
|
pkg_add amfora
|
||||||
# pkg_add alpine
|
pkg_add autoconf
|
||||||
# pkg_add amfora
|
pkg_add bash
|
||||||
# pkg_add autoconf
|
pkg_add clisp
|
||||||
# pkg_add bash
|
pkg_add clojure
|
||||||
# pkg_add clisp
|
pkg_add cmake
|
||||||
# pkg_add clojure
|
pkg_add dos2unix
|
||||||
# pkg_add cmake
|
pkg_add emacs
|
||||||
# pkg_add dos2unix
|
pkg_add gbg
|
||||||
# pkg_add dosbox
|
pkg_add gcc
|
||||||
# pkg_add emacs
|
pkg_add gforth
|
||||||
# pkg_add gbg
|
pkg_add git
|
||||||
# pkg_add gcc
|
pkg_add gmake
|
||||||
# pkg_add gforth
|
pkg_add gnupg
|
||||||
# pkg_add git
|
pkg_add go
|
||||||
# pkg_add gmake
|
pkg_add gopher
|
||||||
# pkg_add gnupg
|
pkg_add gprolog
|
||||||
# pkg_add go
|
pkg_add gtar
|
||||||
# pkg_add gopher
|
pkg_add guile
|
||||||
# pkg_add gprolog
|
pkg_add html2text
|
||||||
# pkg_add gtar
|
pkg_add jdk
|
||||||
# pkg_add guile
|
pkg_add links
|
||||||
# pkg_add html2text
|
pkg_add mosh
|
||||||
# pkg_add jdk
|
pkg_add mpg123
|
||||||
# pkg_add links
|
pkg_add nano
|
||||||
# pkg_add mosh
|
pkg_add nasm
|
||||||
# pkg_add mpg123
|
pkg_add nmap
|
||||||
# pkg_add nano
|
pkg_add node
|
||||||
# pkg_add nasm
|
pkg_add ntfs_3g
|
||||||
# pkg_add nmap
|
pkg_add openconnect
|
||||||
# pkg_add node
|
pkg_add python
|
||||||
# pkg_add ntfs_3g
|
pkg_add rsync
|
||||||
# pkg_add openconnect
|
pkg_add ruby
|
||||||
# pkg_add python
|
pkg_add rust
|
||||||
# pkg_add rsync
|
pkg_add sbcl
|
||||||
# pkg_add ruby
|
pkg_add screen
|
||||||
# pkg_add rust
|
pkg_add subversion
|
||||||
# pkg_add sbcl
|
pkg_add swi-prolog
|
||||||
# pkg_add screen
|
pkg_add texinfo
|
||||||
# pkg_add subversion
|
pkg_add unzip
|
||||||
# pkg_add swi-prolog
|
pkg_add w3m
|
||||||
# pkg_add texinfo
|
pkg_add wget
|
||||||
# pkg_add unzip
|
pkg_add xa
|
||||||
# pkg_add w3m
|
pkg_add xz
|
||||||
# pkg_add wget
|
|
||||||
# pkg_add xa
|
|
||||||
# pkg_add xz
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
4
run-sshd.ksh
Normal file → Executable file
4
run-sshd.ksh
Normal file → Executable file
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# run-sshd.ksh
|
# run-sshd.ksh
|
||||||
# Start the Secure Shell daemon
|
# Start the Secure Shell daemon.
|
||||||
# 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
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# search-pkg.ksh
|
# search-pkg.ksh
|
||||||
# Search for package
|
# Search for a package.
|
||||||
# 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.
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# volume-down.ksh
|
# volume-down.ksh
|
||||||
# Soundcard volume up adjusting
|
# Adjust the sound volume down.
|
||||||
# Copyright (c) 2022, Scott C. MacCallum (scm@sdf.org)
|
# Copyright (c) 2022, 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
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/bin/ksh
|
#!/bin/ksh
|
||||||
|
|
||||||
# Copyright (c) 2022, Scott C. MacCallum (scm@sdf.org)
|
# volume-up.ksh
|
||||||
|
# Adjust the sound volume up.
|
||||||
|
# Copyright (c) 2022, 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
|
||||||
|
Loading…
Reference in New Issue
Block a user