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
From Source (Recommended)
Clone the repository:
git clone https://github.com/Elxes04/piko.git cd piko
Run the installation script:
./install.sh
This script will: - Build Piko from source - Install the binary to /usr/local/bin/ - Install configuration files to /etc/piko/ - Set appropriate permissions
Verify installation:
piko --version
Manual Installation
If you prefer manual installation:
Build the project:
cargo build --release
Install binary:
sudo cp target/release/piko /usr/local/bin/
Create configuration directory:
sudo mkdir -p /etc/piko
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
Test the installation:
piko
List available logos:
piko --list-logosShow 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:
Verify the file exists:
ls -la /etc/piko/Check file permissions:
ls -la /etc/piko/default_config.tomlEnsure 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:
Remove the binary:
sudo rm /usr/local/bin/piko
Remove configuration files (optional):
sudo rm -rf /etc/piko
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.