-
Notifications
You must be signed in to change notification settings - Fork 2
/
cass.txt
executable file
·157 lines (130 loc) · 4.73 KB
/
cass.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/bash
# connect to internet, then run the following:
# pacman -Sy
# curl <url of raw text> | bash
# !! REMEMBER TO ALWAYS REVIEW SCRIPTS BEFORE YOU RUN THEM !!
# Or not... I'm not your mom...
# Before running this script, you should make sure the following has been done:
# Get a USB that you are going to be okay with placing an ISO on
# Download a copy of Arch here: https://archlinux.org/download
# If on Windows, download and run this: https://rufus.ie
# If on Linux, download and run "gnome-disk-utility"
# Now boot, baby!
# Thank you to a of trwnh.com for writing the original script, as seen below
# https://gist.github.com/trwnh/8e9647c8dd0344546bb031eb7680d541
# The git for this script is seen below
# https://github.com/DynTylluan/owly.fans/blob/main/cass.txt (main)
# https://notabug.org/DynTylluan/owly.fans/src/main/cass.txt (mirror)
# https://tildegit.org/cass/owly.fans/src/branch/main/cass.txt (mirror)
# And the copy of it on OwlyFans that is automatically updated whenever the git
# is can be found here:
# https://owly.fans/cass.txt
# If you want to look for packages, the Arch AUG is located here:
# https://archlinux.org/packages
# Also see: https://owly.fans/archinstall
# Remakes your system partitions and mounts them
echo "Making new fiwesystems... ^w^"
mkfs.fat -L "ESP" -F 32 /dev/sda1
mkfs.ext4 -L "Arch" -F /dev/sda2
echo "Done mwaking fiwesystems..."
echo "Mounting filesystems..."
mount /dev/disk/by-label/Arch /mnt
mkdir /mnt/home
mkdir -p /mnt/boot
mount /dev/disk/by-label/home /mnt/home
mount /dev/disk/by-label/ESP /mnt/boot
echo "Done mwounting fiwesystems. ;)"
# Installs a base system with some useful packages
pacstrap /mnt --noconfirm \
adobe-source-han-sans-jp-fonts amd-ucode ark base base-devel discord \
etworkmanager file-roller firefox flatpak galculator gallery-dl gdm git \
gnome-contacts gnome-software gogh gvfs gvfs-mtp hexchat httrack \
jre8-openjdk kernel-modules-hook linux linux-firmware linux-headers nano \
nextcloud-client nm-connection-editor notepadqq noto-fonts-cjk ntfs-3g \
pacman-contrib pamac-aur papirus-icon-theme-git pavucontrol \
phinger-cursors pinta pipewire pipewire-alsa pipewire-jack \
pipewire-pulse polkit-gnome qpwgraph ttf-ubuntu-font-family unrar unzip \
vlc wayland xdg-desktop-portal-gtk xfce4 xfce4-goodies xorg-server \
yt-dlp zip
genstab -L /mnt > /mnt/etc/fstab
# Localize your system
echo "Wocawizing youw system... UwU"
arch-chroot /mnt /bin/bash <<EOF
hostnamectl set-hostname cass
timedatectl set-timezone Europe/London
hwclock --systohc
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
locale-gen
localectl set-locale en_US.UTF-8
localectl set-keymap us
EOF
echo "Wocawization compwete, rawr XD"
# Install a bootloader and write a basic loader entry and config
echo "Instawwing bootwoadew... >w<"
arch-chroot /mnt bootctl install
cat <<EOF > /mnt/install/boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /amd-ucode.img
initrd /initramfs-linux.img
options root=LABEL=Arch rw
EOF
cat <<EOF > /mnt/install/boot/loader/loader.conf
default arch
timeout 5
auto-entries
auto-firmware
editor yes
EOF
echo "Bootwoadew setup compwete. <:"
# Recreating your user profile
echo "Cweating usew pwofiwe... xD"
arch-chroot /mnt /bin/bash <<EOF
useradd -m -G wheel -s /bin/bash cass
EOF
echo "Done cweating usew. UwU"
# Enable system services
echo "Enabwing system sewvices... <3"
arch-chroot /mnt /bin/bash <<EOF
systemctl enable NetworkManager
systemctl enable systemd-timesyncd
systemctl enable gdm
systemctl enable systemd-boot-update
systemctl enable linux-modules-cleanup
EOF
echo "Done enabwing sewvices. ^_^ u should play 100gecs XP"
# Edit system config files
echo "Making pacmwan fancy... x3"
sed -i '/#Color/s/#Color/Color\nILoveCandy/g' /etc/pacman.conf
echo "Done editing config fiwes.... :D"
# Install yay
echo "Instawwing usew packages......"
arch-chroot /mnt /bin/bash <<EOF
cd /home/cass/yay-bin
sudo -u cass makepkg -sic --noconfirm
sudo -u cass yay --gendb
sudo -u cass yay --devel --nodiffmenu --save
EOF
arch-chroot /mnt /bin/bash <<EOF
sudo -u cass yay -S \
gzdoom chocolate-doom multimc-bin jre8-openjdk jre17-openjdk\
activate-linux-git fastfetch \
catfish xfce4-docklike-plugin mugshot pamac-aur \
spotify-adblock
EOF
arch-chroot /mnt /bin/bash <<EOF
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.spotify.desktop
flatpak install flathub io.github.shiftey.Desktop
flatpak install flathub org.audacityteam.Audacity
flatpak install flathub com.obsproject.Studio
flatpak install flathub com.github.huluti.Curtail
EOF
echo "Done instawwing packages. :P"
echo "Scwipt done! Now mwanuawwy wun the fowwowing commwands:
arch-chroot /mnt
passwd
passwd cass
exit
reboot
"