Install TigerVNC -
$ sudo apt install tigervnc-standalone-server
Configure VNC Server by running
| #!/bin/bash | |
| # Enhanced cleanup_cache.sh for Ubuntu 24.04 | |
| # Security and efficiency improvements | |
| # Enable error handling and safety features | |
| set -e # Exit on error | |
| set -u # Exit on undefined variables | |
| set -o pipefail # Exit on pipe failures |
| from p5 import * | |
| import random | |
| width = 1280 | |
| height = 720 | |
| circle_count = 400 | |
| circles = [] | |
| def setup(): | |
| size(width, height) |
| #!/bin/bash | |
| # Define the directory where ComfyUI is located | |
| COMFYUI_DIR="$HOME/GitHub/ComfyUI" | |
| # Check if Conda is installed | |
| if ! command -v conda &> /dev/null; then | |
| echo "Error: Conda is not installed. Please install Conda and try again." | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| # Source Conda environment script to make 'conda' available in WSL | |
| if [ -f "/home/username/anaconda3/etc/profile.d/conda.sh" ]; then | |
| source "/home/username/anaconda3/etc/profile.d/conda.sh" | |
| else | |
| echo "Conda initialization script not found. Please check your Conda installation." | |
| exit 1 | |
| fi |
| { | |
| "last_node_id": 469, | |
| "last_link_id": 1401, | |
| "nodes": [ | |
| { | |
| "id": 16, | |
| "type": "KSamplerSelect", | |
| "pos": [ | |
| -280, | |
| 20 |
| #!/usr/bin/env bash | |
| # Security-Hardened Ubuntu Cleanup Script | |
| # This script performs comprehensive system cleanup with enterprise-grade security | |
| # EXCLUDES: hy3dgen folder from any deletion operations | |
| # | |
| # Security improvements: | |
| # - Comprehensive error handling with trap handlers | |
| # - Safe configuration loading without arbitrary code execution | |
| # - APT and script-level locking mechanisms |
| { | |
| "last_node_id": 47, | |
| "last_link_id": 63, | |
| "nodes": [ | |
| { | |
| "id": 7, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 317, | |
| 352 |
| # Copyright © 2022 Robert A. Gonsalves | |
| # Released under CC BY-SA 4.0 | |
| # https://creativecommons.org/licenses/by-sa/4.0/ | |
| import torchvision.transforms as T | |
| import torch | |
| prompt = "penguins skiing down a snowy mountain" | |
| num_steps = 100 | |
| init_rand_amount = 0.25 |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get --purge remove "*cublas*" "*cufft*" "*curand*" "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "cuda*" "nsight*" | |
| sudo apt-get --purge remove "*nvidia*" | |
| sudo apt-get autoremove | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin | |
| sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
| wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb | |
| sudo dpkg -i cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb |