Skip to content

Instantly share code, notes, and snippets.

View JucaRei's full-sized avatar
:electron:
Focusing

JucaRei

:electron:
Focusing
View GitHub Profile
@JucaRei
JucaRei / Homebrew.sh
Created December 28, 2017 18:51 — forked from nrollr/Homebrew.sh
List of Homebrew commands
#!/bin/bash
brew update # Ensure you’re running the latest version of Homebrew, including latest list of formulae
brew list # Show everything installed with Homebrew
brew outdated # Show Homebrew installed packages which could be updated
brew upgrade # Update all packages installed by Homebrew
brew upgrade [package] # Update an specific package installed by Homebrew
brew pin [package] # Protect a package, prevents installing upgrades
@JucaRei
JucaRei / Arch Secure Laptop Install.md
Created July 17, 2021 23:15 — forked from Th3Whit3Wolf/Arch Secure Laptop Install.md
My install instruction for a secure Arch Linux (sway) laptop workstation

What's Cool

  • Encrypted root partition
    • AES-256 bit cipher
    • Argon2id variant for PBKDF
    • Sha3-512 bit hash
  • rEFInd bootloader
    • With dreary theme
    • Optimal Settings (optimized for aesthetics, and boot time)
  • Boot into backups thanks to refind-btrfs
@JucaRei
JucaRei / arch_sec_install.sh
Created July 17, 2021 23:16 — forked from Th3Whit3Wolf/arch_sec_install.sh
Install arch on btrfs(w/ swapfile) on luks with rEFInd bootloader
#!/bin/bash
# 0 - SSH
# This isn't necessary but if you ssh into the computer all the other steps are copy and paste
# Set a password for root
passwd
# Get network access
iwctl
"""
@JucaRei
JucaRei / initSystemsCheatSheet.md
Created May 14, 2022 22:31 — forked from unrooted/initSystemsCheatSheet.md
init systems cheat sheet

Manage services in systemd, openRC and runit

systemd

  • list all services: systemctl list-unit-files
  • list running services status: systemctl list-units
  • list failed services: systemctl --failed
  • list available services: systemctl --all
  • start a service: systemctl start [SERVICE_NAME]
  • stop a service: systemctl stop [SERVICE_NAME]
1. Update all package system
sudo xbps-install -Suv
2. add non-free repo
sudo xbps-install -Rs void-repo-nonfree
3. Software & utilities
sudo xbps-install -Rs xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs xdg-user-dirs-gtk xdg-utils vlc pipewire libspa-bluetooth noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf noto-fonts-ttf-extra libreoffice-writer libreoffice-calc libreoffice-impress rhythmbox neofetch ntfs-3g gimp inkscape lm_sensors wget udisks2 gvfs mtpfs gvfs-mtp gvfs-gphoto2 xtools WoeUSB xz unrar qt5-wayland nano ffmpeg Kooha handbrake inxi streamlink
4. Install chrome gnome, gnome menu For Gnome & extension
Setting up xbps-src
Docs
1: https://wiki.voidlinux.eu/Xbps-src
2: https://github.com/voidlinux/void-packages/blob/master/Manual.md
3: https://github.com/voidlinux/void-packages/blob/master/README.md
clone https://github.com/voidlinux/void-packages.git
$ xbps-install xtools
@JucaRei
JucaRei / void.md
Created May 16, 2022 05:28 — forked from dko1905/void.md
A guide to install void linux with encrypted root and unencrypted root, with lvm2. (AES-512, lvm)

Encrypted Void Linux setup w/o encrypted boot

This is a guide for installing Void Linux on an EFI system with non encrypted boot and encrypted root. The guide is based on practical paranoid article and official Void Linux article.

Before you start

I wrote this guide to help myself installing Void Linux w/o encrypted boot. I haven't checked it for grammar errors, so there might be some. I hope it will help you, and good luck. And I know that I use way to many pictures/terminal copy paste.

Disclaimer

I am not responsible for any actions you take! This guide was written 2/7/2020, so the info may be outdated. Please remember to use your own computer's partition names.

Required items

#!/usr/bin/env bash
if [[ "$EUID" != 0 ]]; then
echo "ERROR: ${0##*/} needs root privileges to run. Exiting gracefully."
exit 1
fi
f=(10-hinting-slight.conf 10-scale-bitmap-fonts.conf 10-sub-pixel-rgb.conf 11-lcdfilter-default.conf 20-unhint-small-vera.conf 21-cantarell-hinting.conf 30-metric-aliases.conf 30-urw-aliases.conf 31-cantarell.conf 40-nonlatin.conf 42-luxi-mono.conf 45-latin.conf 49-sansserif.conf 50-user.conf 51-local.conf 57-dejavu-sans-mono.conf 57-dejavu-sans.conf 57-dejavu-serif.conf 60-latin.conf 65-fonts-persian.conf 65-nonlatin.conf 69-unifont.conf 70-no-bitmaps.conf 80-delicious.conf 90-synthetic.conf)
for i in "${f[@]}"; do ln -s /usr/share/fontconfig/conf.avail/"$i" /etc/fonts/conf.d; done
@JucaRei
JucaRei / README.md
Created May 16, 2022 05:32 — forked from jaredculp/README.md
Void Linux

Void Linux Macbook Air 2013

Flash installer:

$ dd if=void-live-x86_64-musl-20181111.iso of=/dev/X bs=1m

login as root:voidlinux

Base Install: