From 01f9897826bb2159da85dab8d61e1b105cc25896 Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Tue, 6 Dec 2022 21:09:41 -0500 Subject: [PATCH] Adding files --- bboard.ksh | 5 +++-- com.ksh | 5 +++-- email.ksh | 27 +++++++++++++++++++++++ games.ksh | 7 +++--- irc.ksh | 27 +++++++++++++++++++++++ latency.ksh | 41 +++++++++++++++++++++++++++++++++++ maint.ksh | 3 ++- menu.ksh | 14 ++++++------ play-anonradio.ksh | 25 +++++++++++++++++++++ ps.ksh | 54 ++++++++++++++++++++++++++++++++++++++++++++++ start-irc.ksh | 26 ++++++++++++++++++++++ 11 files changed, 220 insertions(+), 14 deletions(-) create mode 100755 email.ksh create mode 100755 irc.ksh create mode 100755 latency.ksh create mode 100755 play-anonradio.ksh create mode 100755 ps.ksh create mode 100644 start-irc.ksh diff --git a/bboard.ksh b/bboard.ksh index e420722..965865c 100755 --- a/bboard.ksh +++ b/bboard.ksh @@ -18,8 +18,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -host=sdf.org +host=tty.sdf.org +user=scm -mosh $USER@$host screen bboard +mosh $user@$host bboard exit 0 diff --git a/com.ksh b/com.ksh index b0585d5..d5a3003 100755 --- a/com.ksh +++ b/com.ksh @@ -18,8 +18,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -host=sdf.org +host=tty.sdf.org +user=scm -mosh $USER@$host com +mosh scm@$host com exit 0 diff --git a/email.ksh b/email.ksh new file mode 100755 index 0000000..798e84b --- /dev/null +++ b/email.ksh @@ -0,0 +1,27 @@ +#!/bin/ksh + +# email.ksh +# This script starts email on the SDF cluster +# Copyright (C) 2022 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +host=sdf.org +user=scm +program=alpine + +mosh $user@$host $program + +exit 0 diff --git a/games.ksh b/games.ksh index 995cdaf..8f8d23a 100755 --- a/games.ksh +++ b/games.ksh @@ -20,6 +20,7 @@ host=sdf.org +user=scm echo "I will get the games list." echo "When it is displayed, use the up and down arrow keys to navigate it." @@ -27,16 +28,16 @@ echo "Press the Q key to close it." echo -n "Press the Return/Enter key now until the list displays: " read key -mosh $USER@$host games > games.txt +mosh $user@$host games > games.txt # To do: write some logic that checks if games.txt exists, if it does, ask # the user if they are OK with it be overwritten. -mosh $USER@$host less games.txt +mosh $user@$host less games.txt echo -n "Type the name of the game that you want to play: " read game -mosh $USER@$host $game +mosh $user@$host $game exit 0 diff --git a/irc.ksh b/irc.ksh new file mode 100755 index 0000000..d704606 --- /dev/null +++ b/irc.ksh @@ -0,0 +1,27 @@ +#!/bin/ksh + +# irc.ksh +# This script starts a remote shell on the SDF cluster show that an IRC session +# can be resumed +# Copyright (C) 2022 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +host=sdf.org +user=scm + +mosh scm@$host + +exit 0 diff --git a/latency.ksh b/latency.ksh new file mode 100755 index 0000000..2903806 --- /dev/null +++ b/latency.ksh @@ -0,0 +1,41 @@ +#!/bin/ksh + +# latency.ksh +# This script displays the latency on each user accessible SDF server +# Run from a local system +# Tested on OpenBSD/amd64 7.2 +# Copyright (C) 2022 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +ping -c 3 beastie.sdf.org + +ping -c 3 faeroes.sdf.org + +ping -c 3 iceland.sdf.org + +ping -c 3 ma.sdf.org + +ping -c 3 miku.sdf.org + +ping -c 3 otaku.sdf.org + +ping -c 3 rie.sdf.org + +ping -c 3 sdf.org + +ping -c 3 sverige.sdf.org + +exit 0 diff --git a/maint.ksh b/maint.ksh index 911f3ff..e4a1ed9 100644 --- a/maint.ksh +++ b/maint.ksh @@ -17,7 +17,8 @@ # along with this program. If not, see . host=sdf.org +user=scm -mosh $USER@$host maint +mosh $user@$host maint exit 0 diff --git a/menu.ksh b/menu.ksh index 3c5a8a7..802c819 100644 --- a/menu.ksh +++ b/menu.ksh @@ -21,14 +21,16 @@ echo 1. aNONradio echo 2. BBoard -echo 3. Commode +echo 3. Com echo 4. Donate echo 5. Dues echo 6. Games -echo 7. IRC -echo 8. Maint -echo 9. Mastodon -echo 10. Membership -echo 11. Who's connected +echo 7. Gopher +echo 8. IRC +echo 9. Maint +echo 10. Mastodon +echo 11. Matrix +echo 12. Membership +echo 13. Who's connected exit 0 diff --git a/play-anonradio.ksh b/play-anonradio.ksh new file mode 100755 index 0000000..6a2acfc --- /dev/null +++ b/play-anonradio.ksh @@ -0,0 +1,25 @@ +#!/bin/ksh + +# play-anonradio.ksh +# This script loads the mpg123 program to play aNONradio +# Copyright (C) 2020 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +host=http://anonradio.net:8000/anonradio + +mpg123 $host + +exit 0 diff --git a/ps.ksh b/ps.ksh new file mode 100755 index 0000000..7731cf2 --- /dev/null +++ b/ps.ksh @@ -0,0 +1,54 @@ +#!/bin/ksh + +# ps.ksh +# This script displays the processes running by a user on each user +# accessible SDF server, as defined by their variable +# Run from a local system +# Tested on OpenBSD/amd64 7.2 +# Copyright (C) 2022 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +user_ssh=scm +user_ps=scm + +ssh $user_ssh@beastie.sdf.org hostname | more +ssh $user_ssh@beastie.sdf.org ps -u $user_ps | less + +ssh $user_ssh@faeroes.sdf.org hostname | more +ssh $user_ssh@faeroes.sdf.org ps -u $user_ps | less + +ssh $user_ssh@iceland.sdf.org hostname | more +ssh $user_ssh@iceland.sdf.org ps -u $user_ps | less + +ssh $user_ssh@ma.sdf.org hostname | more +ssh $user_ssh@ma.sdf.org ps -u $user_ps | less + +ssh $user_ssh@miku.sdf.org hostname | more +ssh $user_ssh@miku.sdf.org ps -u $user_ps | less + +ssh $user_ssh@otaku.sdf.org hostname | more +ssh $user_ssh@otaku.sdf.org ps -u $user_ps | less + +ssh $user_ssh@rie.sdf.org hostname | more +ssh $user_ssh@rie.sdf.org ps -u $user_ps | less + +ssh $user_ssh@sdf.org hostname | more +ssh $user_ssh@sdf.org ps -u $user_ps | less + +ssh $user_ssh@sverige.sdf.org hostname | more +ssh $user_ssh@sverige.sdf.org -u $user_ps | less + +exit 0 diff --git a/start-irc.ksh b/start-irc.ksh new file mode 100644 index 0000000..96e4fdb --- /dev/null +++ b/start-irc.ksh @@ -0,0 +1,26 @@ +#!/bin/ksh + +# irc.ksh +# This script recovers a screen IRC session on the cluster at SDF +# Copyright (C) 2022 Scott C. MacCallum +# scm@sdf.org + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +host=sdf.org +user=scm + +mosh scm@$host /sdf/arpa/ns/s/scm/irc.ksh + +exit 0