#!/bin/bash
# - bof - #



<<'comment'
# - Configured - #

rm -rf ~/.bashrc;
vim ~/.bashrc;

rm -rf ~/.zshrc;
vim ~/.zshrc;

ssh-keygen -R 192.168.1.1

# - On client - #
cd ~/.ssh;
ssh-keygen -t rsa;

cat ~/.ssh/id_rsa.pub;

# - On server - #
vim ~/.ssh/authorized_keys;

sudo apt install curl git htop inxi net-tools ntp neovim screenfetch tree -y;

# -  - #
# - Documentation - #
comment



# -  - #
# - Documentation - #
https://www.kasmweb.com/
https://www.kasmweb.com/community-edition
https://www.kasmweb.com/get-started

Personal
I want to self-host Server

https://www.kasmweb.com/downloads



# -  - #
# - System requirements - #
https://www.kasmweb.com/docs/latest/install/system_requirements.html

Ubuntu 20.04 / 22.04 / 24.04 (amd64/arm64)
Debian 11 / 12 (amd64/arm64)
Oracle Linux 8 / 9 (amd64/arm64)
Red Hat Enterprise Linux 8 / 9 (amd64/arm64)
Raspberry Pi OS (Debian) 11 / 12 (arm64)
AlmaLinux 8 / 9 (amd64/arm64)
Rocky Linux 8 / 9 (amd64/arm64)

CPU 2 cores
Memory 4GB
Storage 50GB (SSD)

sudo bash kasm_release/install.sh --accept-eula --swap-size 8192

docker > 18.06
docker compose > 2.1.1



# -  - #
# - Single server installation - #
https://www.kasmweb.com/docs/latest/install/single_server_install.html

cd /tmp;
curl -O https://kasm-static-content.s3.amazonaws.com/kasm_release_1.16.1.98d6fa.tar.gz;
tar -xf kasm_release_1.16.1.98d6fa.tar.gz;
sudo bash kasm_release/install.sh;





# :a
# -  - #
# - Reset admin@kasm.local user after installation didn't show credentials - #
https://www.kasmweb.com/docs/latest/how_to/admin_account_recovery.html

# :a.1
# -  - #
# - SSH to the Kasm Workspaces server and connect to the database with the following command - #
sudo docker exec -it kasm_db psql -U kasmapp -d kasm;

# :a.2
# -  - #
# - Reset the Admin password, clear WebAuthn credentials, clear TOP credentials and exit the psql shell - #
update users set
       pw_hash = 'fe519184b60a4ef9b93664a831502578499554338fd4500926996ca78fc7f522',
       salt = '83d0947a-bf55-4bec-893b-63aed487a05e',
       secret=NULL, set_two_factor=False, locked=False,
       disabled=False, failed_pw_attempts = 0 where username ='admin@kasm.local';
DELETE FROM webauthn_credentials WHERE user_id IN ( SELECT user_id FROM users WHERE username = 'admin@kasm.local' );
\q

# :a.3
# -  - #
# - Login to the Workspaces UI using - #

User: “admin@kasm.local”
Password “password”

# :a.4
# -  - #
# - Reset your password to a secure password - #
 AD (Admin)
 Edit profile
 Reset Password

 Old password: password
 New password: Admin22@
 

User: admin@kasm.local
Password Admin22@

User: is_derayo@kasm.local
Password Admin22@











# - eof - #
