Hello, I dual boot windows and linux mint and I am looking to install linux arch on the linux mint partition. I want to install KDE with some packages changed. I asked chatgpt to help me make a bash script to run in chroot, and then I went through the arch wiki to edit the script to make sure it's right. Here's the script, I've got. Would anyone have a look to see if it's okay?
#[SOLVED] installation script for installing arch
296 messages · Page 1 of 1 (latest)
#!/bin/bash
# Set locale and timezone
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
hwclock --systohc
echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_GB.UTF-8" > /etc/locale.conf
echo "KEYMAP=uk" > /etc/vconsole.conf
echo "zenbook" > /etc/hostname
echo -e "127.0.0.1 localhost\n::1 localhost\n127.0.1.1 zenbook.localdomain zenbook" >> /etc/hosts
# Set passwords
useradd -m -G wheel -s /bin/bash jasmine
passwd
passwd jasmine
# Enable sudo
pacman -S --noconfirm sudo
echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/wheel
# Network + microcode
pacman -S --noconfirm networkmanager amd-ucode
systemctl enable NetworkManager
# Base KDE Plasma (Wayland only) + your apps + fonts + tools
pacman -S --noconfirm \
plasma-desktop sddm blueman \
firefox dolphin thunar \
neovim zed zathura \
foliate ghostty kitty \
flameshot speedcrunch ttf-dejavu \
noto-fonts noto-fonts-emoji pipewire \
pipewire-pulse pipewire-alsa helvum \
wireplumber gst-libav ffmpeg \
base-devel git xdg-utils \
btop rsync unzip \
wget curl vlc \
mpv bat exa \
fd ripgrep power-profiles-daemon \
fuse3 neofetch
# Enable SDDM with secure Wayland configuration
systemctl enable sddm
mkdir -p /etc/sddm.conf.d
echo -e "[General]\nDisplayServer=wayland\nGreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell\n\n[Wayland]\nCompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1" > /etc/sddm.conf.d/10-wayland.conf
# Install paru (AUR helper)
cd /home/jasmine
sudo -u jasmine git clone https://aur.archlinux.org/paru.git
cd paru
sudo -u jasmine makepkg -si --noconfirm
# AUR apps: zen browser
sudo -u jasmine paru -S --noconfirm zen-browser
# Set Neovim as default text editor (login shell-wide)
sudo -u jasmine bash -c 'echo "export VISUAL=nvim" >> /home/jasmine/.profile'
sudo -u jasmine bash -c 'echo "export EDITOR=nvim" >> /home/jasmine/.profile'
# Optional KDE cleanup (only if installed via meta)
pacman -Rns --noconfirm konsole kate kwrite gwenview spectacle ark okular kcalc \
kmail kontact akregator korganizer juk dragon print-manager kdeconnect
# Install GRUB and enable dual boot with Windows
pacman -S --noconfirm grub efibootmgr os-prober ntfs-3g
# Enable Windows detection
echo "GRUB_DISABLE_OS_PROBER=false" >> /etc/default/grub
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ArchLinux
grub-mkconfig -o /boot/grub/grub.cfg
# Enable power profile daemon
systemctl enable power-profiles-daemon
echo "✅ All done! Reboot and welcome to your clean Arch + KDE + Wayland system, Jasmine!"
@maiden patrol hold on
make a directory called whatever you want
cd into that
git init
I haven't started install, I am on mint atm
@maiden patrol packages.txt or aur packages.txt?
packages.txt
put every non aur package into that
then for aurpackages.txt put every aurpackage into there
these?
pacman -S --noconfirm
plasma sddm plasma-wayland-session
dolphin thunar
neovim zathura foliate kitty flameshot speedcrunch
ttf-dejavu noto-fonts noto-fonts-emoji
pipewire pipewire-pulse pipewire-alsa wireplumber
gst-libav ffmpeg
base-devel git xdg-utils btop rsync unzip wget curl
vlc bat exa fd ripgrep power-profiles-daemon pw-top
layer-shell-qt fuse3
pacman -Rns --noconfirm konsole kate kwrite gwenview spectacle ark okular kcalc
kmail kontact akregator korganizer juk dragon print-manager kdeconnect
yes
the full command?
just the packages
ok
i put in aurpackages.txt?
sudo -u jasmine paru -S --noconfirm ghostty zed-editor-bin pamac-gtk
zen-browser librewolf potluck helvum
no
forget everything from that script you made
it's going to be remade
from scratch
in aurpackages.txt put the aurpackages in there
example librewolf
check before putting it in there
ok
because ghostty is out of the aur
idk if paru is in aur
well, i wrote git command because i need paru for aur access but idk how to check
i think it is
hmm, so i install git version, then aur version, then delete the git version?
open the aur website to check
stop
actually you don't in this case
it is there
makepkg -siD paru --noconfirm```
do I write this somewhere?
yes, in the install.sh script
show me what's in both of those .txt files please
open your file browser then drag and drop
ah wait wrong file
Is this script just to install it on your system once or do you want to run it multiple time?
once
as described https://github.com/killertofus/awesome
idk, I'm just installing arch with some specific packages. tofu is helping me with a complete script
remove pamac
and replace librewolf with librewolf-bin
and remove paru
replace plasma with plasma-desktop
and remove plasma-wayland-session
It might make more sense to do a manual install then, because making a script would basically be the same thing but slightly more complex
@swift bough done
this a post install script
not a install script
my files btw
zathura can do what foliate does
pw-top is not a package
also you don't need layer-shell-qt
even epub?
yes
which one is better?
pw-top like htop for pipewire? https://docs.pipewire.org/page_man_pw-top_1.html
is not package?
mb
that's included with pipewire
oh
this not needed? https://wiki.archlinux.org/title/SDDM#Wayland
zed is not the aur anymore
helvum and potluck are not in the aur
is this the official repo?
no, I made that repo
i mean in the official pacman repo files
what do you think?
yea?
yes
ok it's in the packages.txt
aur helvum-git
https://aur.archlinux.org/packages/helvum-git
i prefer zen, but it it being developed and heavily modified
so a new update might break it
what's wrong with firefox?
nothing, i heard librewolf is good
use firefox instead
now show aurpackages.txt
is that all you want?
if you want, then remove vlc
add it
why have both?
never tried mpv
and mpv instead of mpv-full
#!/usr/bin/env bash at the top of the script
install.sh? ok
yes
is in packages.txt
done
along with sudo sed -i 's/debug/!debug/g' /etc/makepkg.conf sudo sed -i '/#MAKEFLAGS="5"/c\MAKEFLAGS="--jobs=$(nproc)"' /etc/makepkg.conf sudo sed -i '32 a ILoveCandy' /etc/pacman.conf sudo sed -i '/Color/s/^#//g' /etc/pacman.conf
in install.sh
above git command?
yes
with sudo pacman -Syu --noconfirm sudo pacman -S $(cat packages.txt | cut -d' ' -f1) --noconfirm
for word in $(cat aurpackages.txt); do paru -S --noconfirm --mflags --skipinteg $word || true; done
and sudo pacman -Qttdq | sudo pacman -Rns - --noconfirm
with paru -Scc --noconfirm
do you have any configs you want to use?
after git command?
yes
i have no configs
no neovim config?
no
no configs for any packages?
no
or settings?
no
you use stock neovim with no plugins?
i have never used it
then why add it?
i want to learn
what de/wn are you on now?
and configs in zed?
none
and nano?
none
why have 3 editors?
will not install nano, will have 2
hm
1 browser one editor
i have 2 of all
why?
in case one doesn't work
not the case here
also, maybe in the future I will have neovim with plugins, but now I don't
add # ./configs.sh at the bottom
new dir?
no bluetooth?
in install.sh
ok
bluetooth manager working
add bluetooth to packages.txt with blueman
?
@maiden patrol now save it
yes
okke
@swift bough thank you for helping me create a post install script! ❤️
killertofus received a thank you cookie!
you're welcome
@maiden patrol remember to install a firewall too
You ought to post the completed script at the end of the thread for people to see (then close the thread to prevent it from drowning)
I installed arch and ran the script. I says complete but this message came up, is it okay?
Conflict found
hold on
@maiden patrol link the script again please
I can't I'm on phone and the laptop is still on minimal arch.. might need to reboot for KDE idk
But all I changed was I added that firewall, rest is same
Ufw
pick zen-browser-bin
Pick?
instead of zen-browser in aurpackages.txt
try it and see
try it and see
I should first remove zen-browser?
@maiden patrol and replace it with zen-browser-bin
Sudo paru -Rsn zen-browser?
Its working now
and -Rns is enough
Thank you again tofu! Here's the post install script I used for this setup :)
@maiden patrol why the echo?
should I remove? wanted to see what stage it's in
you can see it for yourself
i don't understand most of this yet
which parts don't you understand?
set -x at the start will make the shell print the command it runs
a lot of the command line stuff, i only installed linux a few days ago
so when it says things are happening, it's new to me
it all works now with zen-browser-bin
@maiden patrol and you picked arch?
i need wayland. when I am home i connect laptop to a projector
it has different resolution and refresh rate to my laptop
and i get a lot of stuttering and it makes watching things not great
am I supposed to 'close post' now?
any os has support for wayland
I was on cinnamon
I thought if I was going to pick and chose the things I want, arch might be better for me
mint?
yes
i am dual booting with windows, so I installed arch on the partition i had mint on just now
how long where you on mint?
that's to soon to be on arch
i installed ventoy on usb with a few distros if i ever want to switch to something else
maybe it's okay, i have all the packages I want
no, it's not
oh I'm sorry 😔
If you are going to be installing Arch Linux, you should be setting expectations so you know what you are getting into. You should know that the community will not be holding you're hand when it comes to what's documented in the wiki. If you are not comfortable with that then you should go to pop-os
okke, understood
You can check whether you are ok or overwhelmed by setting up arch
i was able to do the minimal arch install following wiki
also your question is a bit of a "drama trap": guaranteed to solicit emotional responses. IMO the proper answer to that question is: "what type of person are you"? Because an individual that's self-motivated, quick learning with good reading comprehension and willingness to fail/try again would have no issue installing/running Arch.
no third party guide/video?
no, i failed once though, and had to restart
that's ok
for some reason, in chroot, commands weren't working
but you did eventually install arch with no third party guides/videos?
yes
https://wiki.archlinux.org/title/Installation_guide only the install wiki?
well, i already had the partitions fine because i set up dual boot with mint
yep
thanks :)
I use arch, btw
@maiden patrol now run the command
@maiden patrol this
... solved
#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you