top of page

Installing Kasm Workspaces and Setting Up Kali Linux for Penetration Testing

Updated: Sep 15, 2022

In this post, I demonstrate how to install Kasm Workspaces on a Linux Machine, and then set up a Kali Linux Hacking Lab for pen testing.


Kasm is a container-streaming platform that enables you to stream docker apps from your web browser! That's right! Imagine isolated docker containers, but from the comfort of your browser - That's Kasm!



Installing Kasm


The community edition of Kasm Workspaces is available for free and can be installed on a local Linux Machine. I prefer to install it on a cloud instance because it makes it easier to access my docker apps from anywhere on the Internet, and also since the apps are not running on my own Computer, I do not have to worry about any malicious activity of zero-day attacks.

But if you want to install it on your local Linux machine, go for it! It doesn't make Kasm less capable in any aspect.



Step1. Create a swap partition of 1GiB


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

Step2. Make the swap partition available on boot

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

Step3. Download the latest version of the Kasm Workspaces community edition

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

Step4. Extract the file

tar -xf kasm_release*.tar.gz

Step5. Run the installation script

sudo bash kasm_release/install.sh

This will install Kasm Workspaces on your machine and download all the pre-built images. It takes around 10 minutes for this process to complete.


Once installed, you will be given the randomly generated login credentials to your Kasm Workspaces, note them down.


Now, access your Kasm Workspaces UI by going to https://<YOUR_IP>




Log in with your credentials, and you will be taken to your dashboard. Here you can see all the pre-built apps. You can spawn up a container of any of these apps instantly by clicking on "Launch Session".





Setting Up Kali Linux


Kali Linux is one of the pre-built apps that comes with Kasm but as you can see from the screenshot above, it is disabled (greyed out) by default.


- To enable it, go to the "Admin" tab, and then "Images".

- Search for Kali Linux and click "Edit"

- Check the box that says "Enable"


- Then, scroll down and paste the following JSON value in the "Docker Run Config Override" field. This JSON enables you to use OpenVPN from your Kali Linux container.

{"user":"root","cap_add":["NET_ADMIN"],"devices":["dev/net/tun","/dev/net/tun"],"privileged":true}

- Finally, click Save.



It takes some time for Kasm to download the image of Kali Linux and set it up for you, so just be patient. In my case, it took around 5 minutes before Kali Linux was usable.


Once Kali Linux is available, click on it and select "Launch Session". This will spawn up an isolated Kali Linux container in your browser!



Now, you can use Kali Linux right from your browser! Once you are done with it, you can simply destroy your session which will kill the container completely leaving no tracks!




Installing OpenVPN


If you're intending to use this Kali Linux container for penetration testing, you will most probably also need OpenVPN so that you can connect to the target's network.

OpenVPN is installed by default, but you still have to upgrade it to the latest version to be able to use it without any issues.


- First, update your repos

sudo apt-get update

- Next, upgrade OpenVPN to the latest version

sudo apt install openvpn

- And that's it! You can now use OpenVPN without any issues!

sudo openvpn myfile.ovpn


So, that'll be all for this post. If you want to watch the full video where I demonstrate how to install Kasm, setup Kali Linux, and also hack a TryHackMe room called "Internal" from the Kali Linux container, check it out on YouTube: https://youtu.be/ir3QhZp8864


15 Comments


Ella Jones
Ella Jones
Oct 24, 2025

Russian Escorts Services in Mariyappanapalya offer discrete, professional companionship suited to your preferences. Just as Kasm Workspaces streamlines access to powerful tools with ease, these services ensure a seamless, comfortable experience designed to meet your unique needs with utmost privacy and satisfaction.

Edited
Like

chnabel Nevin
chnabel Nevin
Oct 20, 2025

MMOexp-Lineage 2M: How to Become Unstoppable in Open-World and Siege PvP


Lineage 2M is one of the most intense MMORPGs on mobile and PC, offering large-scale PvP battles, competitive sieges, and open-world skirmishes where power, strategy, and timing decide victory. Whether you’re fighting in small clan duels or massive castle sieges, understanding PvP mechanics and battlefield strategy is the key to survival and dominance.


If you want to become a true force on the battlefield, this guide will walk you through essential PvP tips, class roles, combat mechanics, and tactical strategies that will help you crush your enemies and lead your clan to victory in Lineage 2M.


1. Understanding PvP in Lineage 2M


Unlike many MMORPGs, Lineage 2M puts a…


Like

Alia Rani
Alia Rani
Oct 20, 2025

MMOexp-EA FC26: 100 Matches for Glory — Why Bobby Charlton Is Worth the Grind


EA Sports FC 26 is in full swing, and one of the most exciting objectives early in the game is the chance to unlock none other than Sir Bobby Charlton. While his legendary status needs no introduction, EA have given us a unique twist on his legacy with a special silver-rated card that's already turning heads across the community FC 26 Coins.

 

Yes, you heard that right-a 74-rated silver card-but don't let the rating fool you. With 86 shooting, a stack of useful playstyles, and a surprisingly competitive feel in-game, Bobby Charlton is proving to be one of the most fun and effective objective players…

Like

mobisanchar
Sep 11, 2025

This blog was such an engaging read! The flow of ideas kept me hooked from start to finish, and it’s rare to find content written with such clarity. I often enjoy exploring sites like famehouseworld.com, athingstodo.com, alltypesnames.com, dimensionspath.com, makehappyfamily.com, and bestestpuns.com alongside blogs like this.

Like

comfort space
comfort space
Sep 05, 2025

I’ve noticed that schemes like SSY Calculator not only help families but also strengthen the financial system of the country as a whole. When lakhs of families are investing and saving consistently, it builds a culture of financial responsibility in society. This has long-term benefits for the economy. The focus on daughters’ welfare also adds to India’s progress toward gender equality, which is commendable.

Like

© 2019 Tech Raj. Designed by Teja Swaroop

  • YouTube
  • Facebook Page
  • Twitter
bottom of page