Installation Guide

This guide covers how to install Piko on different systems and platforms.

Prerequisites

Rust Programming Language Piko is written in Rust and requires Rust 1.75+ to build from source.

To install Rust, visit https://rustup.rs/ or run:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

After installation, restart your terminal or run:

source "$HOME/.cargo/env"

Installation Methods

Manual Installation

If you prefer manual installation:

  1. Build the project:

    cargo build --release
    
  2. Install binary:

    sudo cp target/release/piko /usr/local/bin/
    
  3. Create configuration directory:

    sudo mkdir -p /etc/piko
    
  4. Install configuration files:

    sudo cp config/default_config.toml /etc/piko/
    sudo cp config/compact_config.toml /etc/piko/
    sudo cp config/border_config.toml /etc/piko/
    

From Cargo

Install directly from Cargo registry:

cargo install piko

Note: When installing from Cargo, you’ll need to manually copy configuration files or create your own.

Package Managers

Arch Linux (AUR):

yay -S piko

Installation Locations

After installation, Piko will be available in the following locations:

  • Binary: /usr/local/bin/piko

  • System Configuration: /etc/piko/

  • User Configuration: ~/.config/piko/ (macOS)

Configuration Files

The following configuration files are installed by default:

  • `default_config.toml` - Default Dracula-inspired theme

  • `compact_config.toml` - Compact layout theme

  • `border_config.toml` - Bordered output theme

Post-Installation

  1. Test the installation:

    piko
    
  2. List available logos:

    piko --list-logos
    
  3. Show help:

    piko --help
    

Troubleshooting

Permission Denied Errors If you encounter permission errors, ensure the binary is executable:

sudo chmod +x /usr/local/bin/piko

Configuration File Not Found If Piko can’t find the configuration file:

  1. Verify the file exists: ls -la /etc/piko/

  2. Check file permissions: ls -la /etc/piko/default_config.toml

  3. Ensure the file is readable: sudo chmod 644 /etc/piko/default_config.toml

Rust Not Found If you get “cargo: command not found”:

source "$HOME/.cargo/env"

Or restart your terminal after installing Rust.

Uninstallation

To remove Piko:

  1. Remove the binary:

    sudo rm /usr/local/bin/piko
    
  2. Remove configuration files (optional):

    sudo rm -rf /etc/piko
    
  3. Remove from Cargo (if installed via Cargo):

    cargo uninstall piko
    

Next Steps

After installation, you can:

  • Read the Configuration Guide guide to customize Piko

  • Check the Usage Guide guide for command-line options

  • Explore advanced_features for advanced customization

For additional help, please open an issue on the GitHub repository.