-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall_lxc.sh
More file actions
48 lines (37 loc) · 1.51 KB
/
Copy pathinstall_lxc.sh
File metadata and controls
48 lines (37 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
# If you update this from Windows, using Notepad ++, do the following:
# sudo apt-get -y install dos2unix
# dos2unix <FILE>
# chmod u+x <FILE>
#
clear
echo "
_____ _ _ _ _
| |___ ___ ___| |_ ___ _| | | |_ _ _ |_|
| --| _| -_| .'| _| -_| . | | . | | | _
|_____|_| |___|__,|_| |___|___| |___|_ | |_|
|___|
_____ _ _ _ _ _____ __ _____
| | |_ ___|_|___| |_ ___ ___| |_ ___ ___ | |__| | | __|___ ___ _ _
| --| | _| |_ -| _| . | . | | -_| _| | | | | | | | | | _| .'| | |
|_____|_|_|_| |_|___|_| |___| _|_|_|___|_| |_|_|_|_____| |_____|_| |__,|_ |
|_| |___|
\r\n \r\n
This really is meant to be run under Ubuntu 16.04 LTS +
\r\n \r\n
Version: 0.0.2 \r\n
Last Updated: 8/8/2018
\r\n \r\n"
sudo -E apt-get update
wait
sudo -E apt-get upgrade -y
wait
sudo -E apt-get -y install lxc
echo "Creating LXC Container (ubuntu) for web... \r\n \r\n "
lxc-create -t ubuntu -n web1
lxc-start -n web1 -d
#lxc-attach -n web1
wait
#-------------------------
lxc-ls -f
echo "DONE! \r\n \r\n"