Skip to content

Commit

Permalink
agent: add and copy in skel
Browse files Browse the repository at this point in the history
  • Loading branch information
makinbacon21 committed Feb 19, 2024
1 parent 0b1c11f commit 649b292
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agent/createNewUser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ echoerr() { echo "$@" 1>&2; }
user=$1
class=$2

skeldir="/srv/sauce/agent/skel"
homedir="/home/$class/$user/"
webdir="/srv/users/$class/$user/"
dyndir="/srv/users-dyn/$class/$user/"
Expand Down Expand Up @@ -39,6 +40,10 @@ ln -s "$homedir/.mail" "$homedir/.mailbox"
ln -s $webdir "$homedir/web-docs"
ln -s $dyndir "$homedir/web-dynamic"

echo "Copying in skel"

cp -r "$skeldir/* $homedir/"

echo "Setting permissions"
chown -R "$user:users" $homedir
chown "$user:users" $webdir
Expand Down
25 changes: 25 additions & 0 deletions agent/skel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Welcome to SCCS SSH!

The Swarthmore College Computer Society welcomes you to our public SSH server.
Here, you can find free hosting utilities, tons of processing power and storage,
and more!

## Tips and Tricks

- web-docs: This folder in your home directory is a symlink that allows you to
host any static site you'd like. Your site will appear at
https://www.sccs.swarthmore.edu/users/<class>/<username>

- web-dynamic: This new addition is another symlink that drops a service onto our
Dockerized Web server, `gull`. With the proper setup, you can host a dynamic site
to any personal domain of your choice. For more info, contact us at
[email protected].

- Requesting packages: Email us with package requests--this VM runs Fedora Server,
so please find the Fedora package name.

- Running in the background: Use a terminal multiplexor like `screen` or `tmux` to
run long, resource-intensive tasks without having to keep your terminal open.

Enjoy!
SCCS Staff

0 comments on commit 649b292

Please sign in to comment.