henrydenhengst

LXC - LXD with WebGUI Ubuntu

Sep 14th, 2016
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Installation: LXC - LXD
  4. # WebGUI: Webpanel for Ubuntu
  5. # Tested on Ubuntu 16.04
  6. # version 1.00
  7. # written by Henry den Hengst
  8. #
  9. if [[ $EUID -ne 0 ]]; then
  10.    echo "This script must be run as root"
  11.    exit 1
  12. fi
  13. #
  14. # update server
  15. apt-get update && apt-get upgrade -y
  16. apt install lxd lxc lxc-templates uuid bridge-utils ntp yum git -y
  17. #
  18. mkdir /vm
  19. mkdir /scripts
  20. #
  21. wget https://lxc-webpanel.github.io/tools/install.sh -O - | sudo bash
  22. echo "The panel will be available on HTTP port 5000. Login with username admin and password admin."
  23. ufw allow 5000
  24. ufw allow 22
  25. ufw enable
Advertisement
Add Comment
Please, Sign In to add comment