cass.sh 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # THIS IS AN OUTDATED GIT, GO TO THE FOLLOWING URL
  2. # https://github.com/DynTylluan/owly.fans/blob/main/cass.txt
  3. #!/bin/bash
  4. # connect to internet, then run the following:
  5. # pacman -Sy
  6. # curl <url of raw text> | bash
  7. # Thank you to a of trwnh.com for writing the original script, as seen below
  8. # https://gist.github.com/trwnh/8e9647c8dd0344546bb031eb7680d541
  9. # Remakes your system partitions and mounts them
  10. echo "Making new fiwesystems... ^w^"
  11. mkfs.fat -L "EFI" -F 32 /dev/sda1
  12. mkfs.ext4 -L "Arch" -F /dev/sda2
  13. echo "Done mwaking fiwesystems...."
  14. echo "Mounting filesystems..."
  15. mount /dev/disk/by-label/Arch /mnt
  16. mkdir /mnt/home
  17. mkdir -p /mnt/boot/efi
  18. mount /dev/disk/by-label/home /mnt/home
  19. mount /dev/disk/by-label/EFI /mnt/boot/efi
  20. echo "Done mwounting fiwesystems. ;)"
  21. # Installs a base system with some useful packages
  22. pacstrap /mnt \
  23. base base-devel linux linux-firmware linux-headers amd-ucode \
  24. nano git zip unzip unrar networkmanager nm-connection-editor \
  25. xorg-server wayland gdm xfce4 xfce4-goodies gvfs gvfs-mtp file-roller \
  26. pipewire pipewire-pulse pipewire-jack pipewire-alsa qpwgraph pavucontrol \
  27. firefox mpv vlc youtube-dl gimp notepadqq pinta \
  28. flatpak gnome-software polkit-gnome xdg-desktop-portal-gtk
  29. # Localize your system
  30. echo "Wocawizing youw system... UwU"
  31. arch-chroot /mnt /bin/bash <<EOF
  32. hostnamectl set-hostname cass
  33. timedatectl set-timezone Europe/London
  34. hwclock --systohc
  35. echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
  36. localectl set-locale LANG=en_US.UTF-8
  37. localectl set-keymap uk
  38. EOF
  39. echo "Wocawization compwete, rawr XD"
  40. # Install a bootloader and write a basic loader entry and config
  41. echo "Instawwing bootwoadew... >w<"
  42. arch-chroot /mnt bootctl install
  43. cat <<EOF > /mnt/install/boot/loader/entries/arch.conf
  44. title Arch Linux
  45. linux /vmlinuz-linux
  46. initrd /amd-ucode.img
  47. initrd /initramfs-linux.img
  48. options root=LABEL=Arch rw
  49. EOF
  50. cat <<EOF > /mnt/install/boot/loader/loader.conf
  51. default arch
  52. timeout 5
  53. auto-entries
  54. auto-firmware
  55. editor yes
  56. EOF
  57. echo "Bootwoadew setup compwete. <:"
  58. # Recreating your user profile
  59. echo "Cweating usew pwofiwe... xD"
  60. arch-chroot /mnt /bin/bash <<EOF
  61. useradd -m -G wheel -s /bin/bash cass
  62. EOF
  63. echo "Done cweating usew. UwU"
  64. # Enable system services
  65. echo "Enabwing system sewvices... <3"
  66. arch-chroot /mnt /bin/bash <<EOF
  67. systemctl enable NetworkManager
  68. systemctl enable systemd-timesyncd
  69. systemctl enable gdm
  70. EOF
  71. echo "Done enabwing sewvices. ^_^ u should play 100gecs XP"
  72. # Edit system config files
  73. echo "Making pacmwan fancy... x3"
  74. sed -i '/#Color/s/#Color/Color\nILoveCandy/g' /etc/pacman.conf
  75. echo "Done editing config fiwes.... :D"
  76. # Install yay
  77. echo "Instawwing usew packages......"
  78. arch-chroot /mnt /bin/bash <<EOF
  79. cd /home/cass/yay-bin
  80. sudo -u cass makepkg -sic --noconfirm
  81. sudo -u cass yay --gendb
  82. sudo -u cass yay --devel --nodiffmenu --save
  83. EOF
  84. arch-chroot /mnt /bin/bash <<EOF
  85. sudo -u cass yay -S \
  86. gzdoom chocolate-doom multimc-bin jre8-openjdk jre17-openjdk\
  87. activate-linux-git fastfetch \
  88. catfish xfce4-docklike-plugin mugshot pamac-aur \
  89. spotify-adblock
  90. EOF
  91. arch-chroot /mnt /bin/bash <<EOF
  92. flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
  93. flatpak install flathub com.spotify.desktop
  94. flatpak install flathub io.github.shiftey.Desktop
  95. flatpak install flathub org.audacityteam.Audacity
  96. flatpak install flathub com.obsproject.Studio
  97. flatpak install flathub com.github.huluti.Curtail
  98. EOF
  99. echo "Done instawwing packages. :P"
  100. echo "Scwipt done! Now mwanuawwy wun the fowwowing commwands:
  101. arch-chroot /mnt
  102. passwd
  103. passwd cass
  104. exit
  105. reboot
  106. "