Skip to content

pitcany/stacer

Repository files navigation

⚠️ Original project was abandoned. This fork includes Ubuntu 22.04/24.04 compatibility and critical bug fixes⚠️

Version 1.1.1 - Fixed for modern Ubuntu with Qt 5.15+ and high-core-count CPUs

Linux System Optimizer and Monitoring
Patreon

Download Stacer Platform (GNU/Linux) Github All Releases

Reviews

What's New in Version 1.1.1

Critical Bug Fixes

  • Fixed segmentation fault on modern CPUs: CPU frequency detection now properly handles CPUs that report "CPU max MHz" instead of "CPU MHz" (stacer-core/Info/cpu_info.cpp:68-85)
  • Fixed crash on high core-count CPUs: Color palette now wraps correctly for CPUs with >20 cores/threads using modulo operator (stacer/Pages/Resources/history_chart.cpp:51)

Ubuntu 22.04/24.04 Compatibility

  • Fixed all Qt 5.15+ deprecation warnings (~30 instances across 12 files)
  • Updated QtCharts API usage for modern Qt
  • Replaced deprecated QDesktopWidget with QGuiApplication::screens()
  • Modernized string formatting from sprintf() to QString::number()
  • Ready for future Qt 6 migration

See stacer/CHANGES_SUMMARY.md for complete technical details.

Installation

✅ Recommended (Version 1.1.1 with Ubuntu 22.04/24.04 fixes)

Debian/Ubuntu - Download .deb Package

  1. Download stacer_1.1.1-1_amd64.deb from this repository
  2. Install dependencies: sudo apt-get install -y curl systemd
  3. Run sudo dpkg -i stacer_1.1.1-1_amd64.deb
  4. Launch Stacer using the stacer command

Build from Source (All Distributions)

Quick Start: See the Build from source section below.

Comprehensive Guide: See BUILD.md for detailed instructions including:

  • Building .deb packages for Debian/Ubuntu
  • Platform-specific dependencies
  • Troubleshooting common build issues
  • Version management and packaging

⚠️ Alternative Methods (Version 1.1.0 - Old Version Without Fixes)

Warning: The following installation methods install the original version 1.1.0 which has:

  • Qt 5.15+ deprecation warnings and compilation issues on Ubuntu 22.04+
  • CPU frequency detection bugs causing segfaults on modern CPUs
  • Color palette crashes on CPUs with >20 cores

PPA Repository (Ubuntu - Version 1.1.0 only)

sudo add-apt-repository ppa:oguzhaninan/stacer -y
sudo apt-get update
sudo apt-get install stacer -y

Note: This PPA is maintained by the original author and does not include the Ubuntu 22.04/24.04 compatibility fixes from this fork.

Debian sid / Ubuntu from Official Repos (Version 1.1.0)

sudo apt install stacer

Arch Linux AUR (Version 1.1.0)

yay -S stacer
# or
paru -S stacer

Fedora DNF (Version 1.1.0)

sudo dnf install stacer

Build from source with CMake (Qt Version Qt 5.x)

Ubuntu 22.04 / 24.04 Dependencies

sudo apt-get install -y \
    build-essential cmake \
    qt5-qmake qtbase5-dev \
    libqt5charts5-dev libqt5svg5-dev \
    qttools5-dev-tools qttools5-dev \
    curl systemd

Build Steps

  1. mkdir build && cd build
  2. cmake -DCMAKE_BUILD_TYPE=Release ..
  3. make -j $(nproc)
  4. ./output/stacer

The binary will be available at build/output/stacer

Building a .deb Package (Debian/Ubuntu)

If you want to create a .deb package for installation, follow these steps:

Prerequisites

sudo apt-get install -y \
    build-essential cmake \
    qt5-qmake qtbase5-dev \
    libqt5charts5-dev libqt5svg5-dev \
    qttools5-dev-tools qttools5-dev \
    debhelper dh-make devscripts \
    curl systemd

Quick Build

cd stacer
dpkg-buildpackage -us -uc -b

The .deb package will be created in the parent directory as stacer_1.1.1-2_amd64.deb

Install the Package

sudo dpkg -i ../stacer_1.1.1-2_amd64.deb

If you encounter dependency errors:

sudo apt-get install -f

Build Options Explained

  • -us = Don't sign the source package (for local builds)
  • -uc = Don't sign the changes file (for local builds)
  • -b = Binary-only build (don't create source package)

What Gets Built

The build process:

  1. Reads debian/changelog for version number (currently 1.1.1-2)
  2. Reads debian/control for package metadata and dependencies
  3. Executes debian/rules (which calls cmake + make)
  4. Packages everything into a .deb file

Verifying the Package

# List package contents
dpkg-deb -c stacer_1.1.1-2_amd64.deb

# Show package information
dpkg-deb -I stacer_1.1.1-2_amd64.deb

# Extract without installing (for inspection)
dpkg-deb -x stacer_1.1.1-2_amd64.deb /tmp/stacer-extract

Updating the Version

If you make changes and want to create a new package:

  1. Edit stacer/debian/changelog and add a new entry at the top:
stacer (1.1.1-3) stable; urgency=medium

  * Your change description here

 -- Your Name <your@email.com>  $(date -R)
  1. Rebuild the package:
cd stacer
dh clean
dpkg-buildpackage -us -uc -b

Screenshots

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published