Stay Tuned!

Subscribe to our newsletter to get our newest articles instantly!

Security

How to Install and Configure Kasm Workspaces on Ubuntu

Background

As we would like to test the suspicious URL, we could set up a virtual machine and create a snapshot and test that way. Once it has been done, then roll back the snapshot. The problem with this approach is that sometimes you forget to roll back the snapshot and are not sure about the status of that machine.

Solution

Kasm Workspaces provides a safe way to browse websites, check webmail and open files without putting the computer at risk. Kasm environments isolate users by creating a chasm between users’ computers and web threats.

Here’s the step-by-step.

Our Environment

  • We utilised Microsoft Azure to create a dedicated virtual machine with Standard B2s size, 2 vCPUs, and 4 Gb RAM. We used a 64 GB OS disk. We allowed 443 and SSH ports only.
  • For simplicity, we use a single-server installation approach

Requirement

Ensure to follow the requirement based on this Kasm documentation.

Supported OS: Ubuntu 18.04 / 20.04 / 22.04 (amd64/arm64)
Minimum Requirement: 2 cores CPU, 4GB Memory, 50GB storage 
We had an issue with installation initially – “Not enough disk space for the installation – Please free up disk space or use -I to not present images“. It turned out our disk has 30 GB on Microsoft Azure. Once we increased to 64 GB, the installation is good.

Open the command line or terminal.




Log in to the virtual machine.

Creating A Swap Partition

We use the recommendation which is a 1GB swap partition.

sudo dd if=/dev/zero bs=1M count=1024 of=/mnt/1GiB.swap

Change the permission:

sudo chmod 600 /mnt/1GiB.swap

Create a swap:

sudo mkswap /mnt/1GiB.swap

Swap:




sudo swapon /mnt/1GiB.swap

Verify swap file exists:

cat /proc/swaps

To make the swap file available on boot:

echo '/mnt/1GiB.swap swap swap defaults 0 0' | sudo tee -a /etc/fstab

Installation

Access to /tmp folder:

cd /tmp

Download the latest version of Kasm Workspaces to /tmp folder:

curl -O https://kasm-static-content.s3.amazonaws.com/kasm_release_1.11.0.18142e.tar.gz

Extract the package:




tar -xf kasm_release*.tar.gz

Run the installation script:

sudo bash kasm_release/install.sh

Accept the user agreement.

Wait for the installation to complete and this took a while.

Once it is complete, keep the information login detail safe.

Run the Application

Open the browser and type in https://{Public_IP_Address}




Kasm Login Page

Log in as admin.

Kasm Admin

To launch the app container, click the Workspaces tab.

Kasm Workspaces

Select Chrome for instance.

Kasm Launch Chrome

Click the Launch Session button.

This will launch a Chrome browser inside the browser.




Chrome browser
Note: On the left-hand side, there is menu option.

Click the left-hand side menu icon:

Kasm Menu

That is it. This container running on the web is really cool. You can even run a full-blown Ubuntu desktop or Kali Linux or play Doom on the go!

The End

Congratulation on reaching the end of this article. We hope we have shed some light on outlining how to install and configure Kasm Workspaces on Ubuntu Server.

Let’s Discuss – We would love to hear about how you deal with the situation and what problems you might be facing. Please feel free to comment below this article or jump into our Dewachat and let us know if you have any questions we can answer!

We write this so that this is not a fixed article. Like in this journey, we learn as we go and re-write some parts, so please keep pinging with this article.

Take a Look – To boost your product and service to the broader web community, you can visit our Dewalist classified website – home to 36,000+ active users and 51,000+ one year of active advertising so far.

If you like this post, please check out our other related posts:




Try it Out – To solve, maintain and monitor Search Engine Optimisation (SEO) and other web challenges, check out our Dewagear tools website – home to 50+ tools so far.

If you love this article or any tech posts and you would like to receive an update of this article or our latest post, please sign up for the form below:

Newsletter signup

This is a newsletter for tech, creative, gadgets, games and crypto.

Please wait...

Thank you for sign up!

Avatar

Valdy

About Author

Valdy founded Dewacorp.com, a helpdesk and IT Services provider that has taken care of nearly 40,000 customer service requests in the past 15 years - nearly 2,600 per year. He also created the growing Dewalist.com - a classified website that has close to 110,000 page views and 9,000+ user visits per month with 61,000+ yearly published ads and 47,000 active registered users. He blogs for the ever-growing Dewapost.com, a tech blog that gets around 20,000 impressions per month with 700 clicks and 10 average pages first impressions on Google Search. You can reach him on the Contact Us page, social media links below or Dewachat.com.

You may also like

Feature Security

How to Harden the Ubuntu Server in 2022

Background As I wrote the blog – A Complete Setup Guide for Contabo VPS Ubuntu 20.04 with preinstalled Webmin +
Security

How to Harden Router Security for Home/Office in 2022

Background As configured more routers on-site either in the office or home-office environment, we started to compile on how to