Skip to content

Instantly share code, notes, and snippets.

View bashelled's full-sized avatar

Bashel bashelled

View GitHub Profile
@bashelled
bashelled / install-arch-without-pacstrap.md
Last active September 29, 2023 11:48
Some tutorial on how to pacstrap Arch Linux without pacstrap.

Installing Arch without pacstrap is easy. No, you won't use archbootstrap. That is only for chroots. Instead, you will do it hand made.

First, make the file system.

mkdir -m 0755 -p /path/to/root/var/{cache/pacman/pkg,lib/pacman,log} /path/to/root/{dev,run,etc/pacman.d}
mkdir -m 1777 -p /path/to/root/tmp
mkdir -m 0555 -p /path/to/root/{sys,proc}
cp -a /etc/pacman.d/gnupg "/path/to/root/etc/pacman.d/"
@bashelled
bashelled / bs.sh
Created April 9, 2021 21:56
bssh: Bad Shell-based SHell: a shell written in shell that is bad
#!/bin/bash
SPS="prompt >>"
main () {
echo $0
echo $SPS
read stuff
$stuff
}
for i in {1..1000}
do
@bashelled
bashelled / Debootstrap Install.md
Last active May 21, 2021 20:10 — forked from Tookmund/Debootstrap Install.rst
Install Debian or Ubuntu like Arch, simplified

Install Debian/Ubuntu/Kali like Arch/Gentoo

Indicators:

  • <<>>: Replacable
  • <>: Replace
  1. Download and boot from a Debian/Ubuntu live CD: https://www.debian.org/CD/live/ (if you have an existing Linux system with debootstrap support, skip to step 3)

  2. Login with user:live

@bashelled
bashelled / xbps
Created April 5, 2021 11:35
An XBPS shortcut for Void Linux
#!/bin/bash
usage () {
echo "Usage: xbps COMMAND [OPTIONS] [PACKAGES...]"
echo ""
echo "A shortcut to xbps commands."
echo ""
echo "[-h, --help, help, blank]: Shows this help"
echo "[-v, --ver, --version, ver, version]: Shows your XBPS version"
}
@bashelled
bashelled / Install Arch.md
Last active April 3, 2021 12:23
How to install Arch Linux on UEFI systems.

Installing Arch on EFI

  • Root: /dev/sda5
  • ESP: /dev/sda2
  • Swap (optional): /dev/sda7
    Change these details to your own.
    Needed* < the asterik means you must do the step

1. Partition in cgdisk (* if you haven't done it before install)

Just repartition your drive, or delete everything

2. Make filesys*

@bashelled
bashelled / template.sh
Last active February 14, 2021 13:23
Script template for --help/-h and --version - clone manually, because formatting will give errors.
#!/bin/bash
# a short template for --help and --version
# Script declaration
SCRIPTNAME="${0##*[\\/]}"
SCRIPTVERSION="1.0"
function apphelp # This will be shown when you run (name) --help.
{