This script sets up a RunPod KASM environment with VS Code and root permissions.
-
Start your RunPod instance using the KASM template (e.g.,
j12p0fqltt) -
Download and run the setup script:
wget https://raw.githubusercontent.com/whereAGI/runpod-kasm-setup/main/setup.sh
chmod +x setup.sh
sudo ./setup.sh- Installs VS Code
- Configures root permissions for the KASM user
- Sets up NVIDIA environment variables
- Modifies KASM startup scripts for root access
Check the logs for any errors. The script includes timestamps for easy debugging.
If you encounter any issues:
- Check if you're running as root (
sudo) - Ensure the base KASM template is working correctly
- Review the logs in
/var/log/
After running the script:
- Open VS Code to verify installation
- Try running commands with sudo (should work without password)
- Check NVIDIA GPU access with
nvidia-smi
Once you've confirmed the script works, you can use it as a base for creating a custom Docker image. The script's steps can be converted directly into Dockerfile instructions.