Featured

ChatGPT Lands on the Linux Desktop

For Linux users who have long relied on browser tabs or third-party wrappers to interact with ChatGPT, OpenAI has officially expanded its native desktop lineup. The ChatGPT desktop app for Linux is now available in preview, bringing integrated workflows, local file access, and Codex tooling directly to native Linux environments. Here is a complete rundown of what’s included, supported distributions, installation steps, and current limitations. Supported Distributions & Architectures The preview release targets mainstream Debian- and Red Hat–based desktop environments across both x64 (x86_64) and ARM64 (aarch64) hardware architectures: Ubuntu: 24.04 LTS and 26.04 LTS Debian: Debian 13 Fedora: Fedora 43 and 44 To verify your system architecture before downloading, run: uname -m x86_64 indicates an x64 processor. aarch64 or arm64 indicates an ARM64 processor. Installation Guide OpenAI provides native .deb and .rpm packages, which automatically configure ...

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