KASM Virtual Desktop on EC2 Guide
Running Docker containers through KASM for added security
- Single Server Installation
- Minimum Requirements
- Installation
- Swap Partition
- Login Information
- HACKS FOR KASM
cd /tmp
curl -O https://kasm-static-content.s3.amazonaws.com/kasm_release_1.12.0.d4fd8a.tar.gz
# This is downloading the latest version of KASM workspaces to the /tmp folder.
tar -xf kasm_release_1.12.0.d4fd8a.tar.gz
# This is extracting the package which was just downloaded.
sudo bash kasm_release/install.sh
# The installation script is being run for KASM.
If your PC does not have a swap file, you will need to create one immediately after installing KASM.
Run the following command in Terminal:
sudo bash kasm_release/install.sh --accept-eula --swap-size 4096
Login Information
After the package for the latest version of KASM has been extracted to the right folder and a swap partition has been created, you can log into the web application. The web application runs on port 443 (though configurations can be altered to run on another port):
https://WEBAPP_SERVER_NAME_HERE
You want to login with the Administrator account, which is defaulted to admin@kasm.local with randomly generated passwords. This will allow you to manage environments and workspaces.
KASM Configurations
Once you are logged in, you can change KASM configuration settings as an administrator by navigating to the "Settings" tab on the left side.
Here are all of the settings stored in server settings which you can research in your free time: https://kasmweb.com/docs/latest/guide/settings.html
Here, there are hundreds of settings which you can take a look at. Depending on the setting you are changing, you may need to restart ALL KASM services or certain individual services.
Take a look below for the commands for these service restarts:
cd /opt/kasm/bin
# The opt directory is for all software and packages that are not installed by default on Linux.
# This makes sense, since we installed KASM separately.
./stop
./start
# All the services have been restarted.
# Restarting individual services on the server:
sudo docker restart kasm_agent
sudo docker restart kasm_api
sudo docker restart kasm_manager
sudo docker restart kasm_db
sudo docker restart kasm_proxy
HACKS FOR KASM
-
In 3-4 sentences, please explain the significance of virtual desktops and KASM. How can virtual desktops such as these be utilized in our AP CSP environment? (0.45)
-
Attempt to work through the KASM setup with your team. Attach two screenshots to show that you have successfully gone through the setup: The first screenshot of KASM generating your credentials, and the second screenshot of the KASM workspace once you have logged in. (0.45)