I need to give shell access to my Linux students and the most easy way is by using shellinabox. They can also install Linux at home, but still it is more fun when you use Linux in a multi-user environment. It is also easier for me to assign and evaluate homeworks.
-
First install
dsandwsproxy: -
Then get the shellinabox scripts from github:
ds pull shellinabox -
Create a directory for the shellinabox container:
ds init shellinabox @shell1 -
Fix the settings:
cd /var/ds/shell1/; vim settings.sh -
Build image, create the container and configure it:
ds make
-
Tell
wsproxyto manage the domain of this container:ds wsproxy add -
Tell
wsproxyto get a free letsencrypt.org SSL certificate for this domain (if it is a real one):ds wsproxy ssl-cert --test ds wsproxy ssl-cert -
If the domain is not a real one, add to
/etc/hoststhe line127.0.0.1 shell1.example.organd then try https://shell1.example.org in browser.
ds shell
ds stop
ds start
ds snapshot
ds help