Featured

I Turned ON All Ubuntu Telemetry.

I  did something today that will make certain corners of the internet audibly gasp. I didn’t disable telemetry. I didn’t firewall it. I didn’t put on a tinfoil hat and boot into a Faraday cage. No. I installed every Ubuntu data-donation tool and opted in manually like a lunatic with intent. Yes. Telemetry. On. All of it. Step 1: Installing the “evil” telemetry tool First, I installed Ubuntu’s main data-donation package: sudo apt update sudo apt install ubuntu-report Then I looked at the data it collects: ubuntu-report And what did I see? CPU model GPU model RAM size Screen resolution Oh no. My computer… exists . Step 2: Opting in aggressively Not satisfied with a passive existence, I explicitly told Ubuntu: ubuntu-report -f send yes That’s right. Not “ask me later” . Not “maybe” . YES. SEND IT. Somewhere, a Canonical server blinked awake like: “Another one has chosen… participation.” Step 3: Package usage stats (aka “He installed VLC”) Next up:...

Install Tokio runtime


  1. Ensure Rust is Installed
    If you haven't installed Rust yet, make sure to do so using rustup:

    winget install -e --id Rustlang.Rustup
    
  2. Create a New Rust Project
    If you're starting fresh, create a new Rust project:

    cargo new my_project
    cd my_project
    
  3. Add Tokio as a Dependency
    Open the Cargo.toml file in your project and add Tokio:

    [dependencies]
    tokio = { version = "1", features = ["full"] }
    

    Alternatively, you can run:

    cargo add tokio --features full
    
  4. Write a Basic Tokio Application
    Now, create a simple async function in main.rs:

    use tokio::time::{sleep, Duration};
    
    #[tokio::main]
    async fn main() {
        println!("Hello, Tokio!");
        sleep(Duration::from_secs(2)).await;
        println!("Done!");
    }
    
  5. Build and Run
    Compile and execute your program:

    cargo run

Comments