Professional Documents
Culture Documents
Requirements
1. A fresh Alibaba Cloud Ubuntu 16.04 instance with minimum 2GB of RAM.
2. A static IP address is configured.
3. A Root password is set up on the server.
7. apt-get update -y
8. Install LXC
lxc-checkconfig
You can now list the created container with the following command:
lxc-ls
Output:
new-container
Start Container
You can now start the container with the following command:
lxc-start -n new-container -d
lxc-console -n new-container
You can get the details of the running container using the following command:
lxc-info -n new-container
You can start and stop the container with the following command:
lxc-start -n new-container
lxc-stop -n new-container
You can Pause and Unpause the container with the following command:
lxc-freeze -n new-container
lxc-unfreeze -n new-container
You can also take a snapshot of the container. First, stop the running container with
the following command:
lxc-stop -n new-container
Docker
2. Remove any Docker files that are running in the system, using the following
command:
After entering the above command, you will need to enter the password of the root
and press enter.
You’ll then get a prompt asking you to choose between y/n - choose y
6. Before testing Docker, check the version installed using the following command:
$ docker –version
7. Pull an image from the Docker hub using the following command:
8. Check if the docker image has been pulled and is present in your system using
the following command:
$ sudo docker ps –a
10. To check for containers in a running state, use the following command:
$ sudo docker ps
Prerequisites
2 or more Linux servers running Ubuntu 18.04
Access to a user account on each system with sudo or root privileges
The apt package manager, included by default
Command-line/terminal window (Ctrl–Alt–T)
docker ––version
Install Kubernetes
Step 3: Add Kubernetes Signing Key
2. Then repeat the previous command to install the signing keys. Repeat for each
server node.
Kubernetes is not included in the default repositories. To add them, enter the
following:
Kubeadm (Kubernetes Admin) is a tool that helps initialize a cluster. The tool gives
you command-line access to clusters.
4. On the “Check for Updates” page, select whether you want Setup
to download product and security updates for Exchange. Click Next
to proceed.
5. After the Setup has finished copying files on the Copying Files
page, click Next to proceed.
7. The License Agreement page opens up, read the terms and
conditions, select the ‘I accept the terms in the license agreement‘,
and then click Next.
11. In the next step, you will be asked whether you want to enable or
disable the Malware Protection Setting. Make your choice and click
Next.
12. In the next step, computer will do the readiness check to find
out if the organization and server role prerequisite have completed
successfully. If unsuccessful, click Back to perform the required
tasks and run the readiness check again. If successful, click Install
to continue.
13. The software is installed. And once the setup installs all the
components, the Setup Completed page is displayed. Click Finish to
complete the installation.
First, you need to configure the sources from which squid proxy should
accept connections. For example, you might need to access this proxy
server only from your home network or from specific CIDR ranges.
You can add a source IP range with an ACL using the following format.
Test if the proxy server is9 working using a simple curl request. Use the
following curl format. By default squid proxy runs on 3128 port.
Along with access ACL’s, you can add basic authentication to your proxy
server for extra security. Follow the steps given below for setting up a basic
auth for the squid proxy server.
Step 1: Install httpd-tools
Step 3: Add pxuser to the password file using htpasswd utility. It will
prompt for a custom password. Enter a strong password you need. This
username and password will be used for all connections through this proxy.
sudo vi /etc/squid/squid.conf
Step 5: Now, restart squid server for the configuration changes to take
place.
Step 6: Now if you test the proxy connection using curl, you will get the
“authentication required message”
Now, test the connectivity with proxy user and password we configured in
step 3. An example syntax is shown below.
Blocking Websites
Another great use of the proxy server is restricting the website access.
Follow the steps below for creating a block list.
sudo vi /etc/squid/blocked_sites
facebook.com
twitter.com
instagram.com
sudo vi /etc/squid/squid.conf
You must have a working Dynamic Name Services (DNS) server on the network to
run Windows Deployment Services. Administrators may choose to dedicate an entire
server to one role or to install multiple server roles on a single computer. For
simplicity, the Dynamic Host Configuration Protocol (DHCP) and Domain Name
System (DNS) roles can be installed together on one server.
Installation Information
Domain Name System (DNS) is the name resolution protocol for TCP/IP networks,
such as the Internet. A DNS server hosts the information that enables client
computers to resolve memorable, alphanumeric DNS names to the IP addresses that
computers use to communicate with each other. Here is a summary:
DNS Configuration
To configure your DNS server, follow these 5 steps:
IIS services