Skip to content

Instantly share code, notes, and snippets.

$ sudo mkdir -p /etc/systemd/sleep.conf.d
$ sudo chmod 0644 /etc/systemd/sleep.conf.d
$ echo "[Sleep]\nAllowSuspend=no\nAllowHibernation=no\nAllowSuspendThenHibernate=no\nAllowHybridSleep=no" | sudo tee /etc/systemd/sleep.conf.d/nosuspend.conf
$ sudo chmod 0644 /etc/systemd/sleep.conf.d/nosuspend.conf
@zoliky
zoliky / installing-softmaker-office-on-debian.txt
Last active October 13, 2023 17:30
Installing SoftMaker Office on Debian 12
Installation
------------
$ wget -qO - https://shop.softmaker.com/repo/linux-repo-public.key | sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/softmaker.gpg
$ echo "deb https://shop.softmaker.com/repo/apt stable non-free" | sudo tee -a /etc/apt/sources.list.d/softmaker.list
$ sudo apt update
$ sudo apt install softmaker-office-nx
sudo cp -vR data/* /usr/share/vice
@zoliky
zoliky / installing-latex-on-debian.txt
Last active October 13, 2023 16:59
Installing LaTeX on Debian 12
Installation
------------
https://tug.org/texlive/quickinstall.html
$ cd ~/tmp
$ wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
$ zcat < install-tl-unx.tar.gz | tar xf -
$ cd install-tl-*
$ perl ./install-tl --texdir=$HOME/.local/texlive --scheme=small --no-interaction
@zoliky
zoliky / create-bootable-usb-for-linux.txt
Created July 10, 2023 12:37
Create bootable USB for Linux
Check the available disks on the system using the following command:
$ sudo fdisk -l
Write the ISO image to the USB drive:
$ sudo dd bs=4M if=path/to/the/file.iso of=/dev/sdX
@zoliky
zoliky / installing-apache-and-php-on-debian.txt
Last active July 9, 2023 17:00
Installing Apache and PHP on Debian 12
Installation
------------
$ sudo apt install apache2 php php-mysql php-pgsql php-gd
Configure the firewall:
$ sudo ufw app list
$ sudo ufw allow 'WWW Full'
$ sudo ufw enable
@zoliky
zoliky / installing-mu4e-from-source-on-debian.txt
Last active October 11, 2023 23:29
Installing mu4e from source on Debian 12
Installation
------------
1. Install the build dependencies for mu4e:
$ sudo apt install libglib2.0-dev libgmime-3.0-dev libxapian-dev guile-3.0-dev texinfo install-info meson
2. Download the mu4e source code from https://github.com/djcb/mu/releases
3. Install mu4e in HOME/.local:
@zoliky
zoliky / installing-emacs-from-source-on-debian.txt
Last active April 16, 2024 13:46
Installing Emacs 29.1 from source on Debian 12
Installation
------------
1. Install the build dependencies for Emacs:
$ sudo apt build-dep emacs
$ sudo apt install libtree-sitter-dev
2. Download and unpack the Emacs archive: