Skip to content

Instantly share code, notes, and snippets.

@protosam
Created January 7, 2016 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save protosam/6e39f82053bd4cc322cc to your computer and use it in GitHub Desktop.
Save protosam/6e39f82053bd4cc322cc to your computer and use it in GitHub Desktop.
#!/bin/bash
sed -i '/^pts/d' /etc/securetty; for i in {0..40}; do echo pts/$i >> /etc/securetty; done
sed -i '/^OPTS=/d' /etc/sysconfig/shellinaboxd
echo 'OPTS="--user-css Normal:+/usr/share/shellinabox/white-on-black.css --disable-ssl-menu -s /:LOGIN"' >> /etc/sysconfig/shellinaboxd
systemctl restart shellinaboxd
systemctl enable shellinaboxd
echo ProxyPass /shellinabox http://localhost:4200/ > /etc/httpd/conf.d/shellinabox.conf
systemctl reload httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment