Skip to content

Linux Installation and Building

Linus Weber edited this page Mar 17, 2023 · 8 revisions

Linux Installation

Fedora

dnf install git golang SDL2{,_gfx,_image,_ttf}-devel dejavu-sans-fonts

Ubuntu

apt install git golang libsdl2{,-gfx,-image,-ttf}-dev fonts-dejavu

Regenerate rsrc.syso for icon (optional)

Present file automatically included by go build: https://github.com/akavel/rsrc.

rsrc -arch amd64 -ico "csgoverview.ico"

Build

This project uses go modules. Make sure you have go version 1.18 or higher installed. Run go version to check.

git clone https://github.com/Linus4/csgoverview.git
cd csgoverview
go build

Executable

You can move or symlink the executable into a directory in your $PATH to make the program available everywhere on your system.

Example:

sudo ln -s <path to cloned repository>/csgoverview /usr/bin/csgoverview

Desktop file (Linux)

In order to add csgoverview to your applications menu, create a .desktop file (use the path to the executable on your computer in Exec):

echo "[Desktop Entry]
Name=CSGOverview
Exec=/usr/local/bin/csgoverview %F
Type=Application
Terminal=false
Categories=Games;" > $HOME/.local/share/applications/csgoverview.desktop

Get overviews

Download overview images from imgur, create a directory with mkdir -p $HOME/.local/share/csgoverview/assets/maps and copy the overviews that you need to $HOME/.local/share/csgoverview/assets/maps.

You can use other overviews as long as they are .jpg files and they match the naming pattern (e.g. de_nuke.jpg). Ideally, their size should be 1024x1024 pixels or larger.

More overviews are available here:

On Linux, you can convert images with convert image.png image.jpg if you have ImageMagick installed.