Skip to content

Instantly share code, notes, and snippets.

@zoliky
zoliky / installing-emacs-from-source-on-debian.txt
Last active October 24, 2024 06:25
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:
@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-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 / 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-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
sudo cp -vR data/* /usr/share/vice
@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
@zoliky
zoliky / creating-and-formatting-a-drive-to-fat32-in-freebsd.txt
Last active August 3, 2024 11:42
Creating and Formatting a Drive to FAT32 (Up to 4GB) in FreeBSD
# assuming usb drive to be formatted is da0
# gpart destroy -F da0
# gpart create -s mbr da0
# gpart add -a 1M -t fat32 da0
# newfs_msdos -F32 /dev/da0s1
# mount_msdosfs /dev/da0s1 /media
Original thread:
https://forums.freebsd.org/threads/which-filesystem-should-i-use-for-a-usb-flash-drive-to-ensure-it-is-accessible-on-both-freebsd-and-linux.94419/