From 788124089bff68854dc2b01b501dcb0e5b6ef0d1 Mon Sep 17 00:00:00 2001 From: Aryan Gupta Date: Wed, 3 Dec 2025 08:50:30 -0500 Subject: [PATCH] add history --- history/.bash_history_root | 47 ++++++++++++++++++++++++++++++++++++++ history/.zsh_history | 45 ++++++++++++++++++++++++++++++++++++ notes/main.md | 3 ++- 3 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 history/.bash_history_root create mode 100644 history/.zsh_history diff --git a/history/.bash_history_root b/history/.bash_history_root new file mode 100644 index 0000000..4a4fec3 --- /dev/null +++ b/history/.bash_history_root @@ -0,0 +1,47 @@ +ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime +hwclock --systohc +vim /etc/locale.gen +locale-gen +vim /etc/locale.conf +vim /etc/locale.conf +vim /etc/hostname +ls /boot/ +echo $(sudo blkid) > /etc/kernel/cmdline +vim /etc/kernel/cmdline +vim /etc/mkinitcpio.conf +vim /etc/mkinitcpio.d/linux-lts.preset +mkinitcpio -P +vim /etc/mkinitcpio.d/linux-lts.preset +mkinitcpio -P +loadkeys us +mkinitcpio -P +vim /etc/vconsole.conf +mkinitcpio -P +passwd +git init linux-audit +rm -rf linux-audit/ +useradd -m -G wheel,aryan -s zsh aryan +useradd -m -G wheel -s zsh aryan +useradd -m -G wheel -s /bin/zsh aryan +useradd -m -G wheel -s /bin/zsh aryan +cat /etc/passwd +cat /etc/shadow +passwd -Sa +passwd aryan +ls +mv base-image.sha256sum /home/aryan/audit/hashes/ +chown aryan:aryan /home/aryan/audit/hashes/ +ls -la +cat .zsh_history +mv .zsh_history /home/aryan/ +chown aryan:aryan /home/aryan/.zsh_history +systemctl enable --now iwd.service +iwctl +ping 8.8.8.8 +ping 1.1.1.1 +iwctl +ping 1.1.1.1 +ping 1.1.1.1 +ping 1.1.1.1 +ping 1.1.1.1 +iwctl diff --git a/history/.zsh_history b/history/.zsh_history new file mode 100644 index 0000000..03c7753 --- /dev/null +++ b/history/.zsh_history @@ -0,0 +1,45 @@ +lsblk +sudo cryptsetup open /dev/nvme0n1p2 boson +sudo mount /dev/nvme0n1p2 /mnt +sudo mount /dev/mapper/boson /mnt +sudo mount /dev/nvme0n1p1 /mnt/boot +ls /mnt +iwd +iwctl +ping 1.1.1.1 +timedatectl +pacstrap -K /mnt base base-devel linux-lts linux-firmware iwd vim e2fsprogs openssh git efibootmgr linux-lts-headers wpa_supplicant zsh +genfstab -U /mnt >> /mnt/etc/fstab +arch-chroot /mnt +efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "AL" --loader "\boot\arch-linux-lts.efi" --unicode +efibootmgr -Bb 0002 +cp ~/.zsh_history /mnt/root/ +find /mnt -print0 | xargs -0 sha256sum | tee base-image.sha256sum +mv ~/base-image.sha256sum /mnt/root +ls /mnt/root +ls /mnt/root/ -la +cp ~/.zsh_history /mnt/root/ +cat ~/.zsh_history +cat ~/.zsh_history +cat ~/.zsh_history +cat ~/.zsh_history +ls +ls -la +iwctl +ping 1.1.1.1 +iwctl +ping 1.1.1.1 +ping 1.1.1.1 +ping 1.1.1.1 +ping 1.1.1.1 +ping 1.1.1.1 +ping 8.8.8.8 +ping 8.8.8.8 +ip a s +ip a s +vim audit/notes/main.md +chsh bash +chsh aryan bash +csh aryan bash +chsh aryan -s bash +chsh aryan -s /bin/bash diff --git a/notes/main.md b/notes/main.md index 89632a4..f9ee455 100644 --- a/notes/main.md +++ b/notes/main.md @@ -6,7 +6,8 @@ command: `find /mnt -print0 | xargs -0 sha256sum | tee base-image.sha256sum` - issues faced - `/etc/kernel/cmdline:rd.luks.name=UUID=name` -- BOOT ERROR -- UUID is of superblock not LUKS container, should be correct in ansible - `efibootmgr * --loader "PATH"` -- PATH INVALID ERROR -- PATH doesnt require mount name, oops, should be correct in ansible - +history: + - me, a data horder? psshhh, nahhh # manual install compare-to