Compare commits
15 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
2b086eb859 | |
|
|
98001efd5a | |
|
|
93299df699 | |
|
|
afd01f78e8 | |
|
|
36f0c1e591 | |
|
|
e504e2545e | |
|
|
93823dac2f | |
|
|
789710a61c | |
|
|
77dd766521 | |
|
|
3d5f89d29f | |
|
|
8009eed059 | |
|
|
20905df875 | |
|
|
cb33610754 | |
|
|
b4aa61e543 | |
|
|
5d5e4a3e5d |
|
|
@ -1,3 +1,2 @@
|
||||||
# arch-install
|
# arch-install
|
||||||
arch linux install script with all my configs...
|
Base arch install script/guide
|
||||||
forked from bugswriter.
|
|
||||||
|
|
|
||||||
|
|
@ -103,107 +103,29 @@ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archl
|
||||||
sed -i 's/quiet/pci=noaer/g' /etc/default/grub
|
sed -i 's/quiet/pci=noaer/g' /etc/default/grub
|
||||||
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
|
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
|
||||||
|
|
||||||
|
echo "GRUB_DISABLE_OS_PROBER=false" >> /etc/default/grub
|
||||||
|
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
16. Install all the required user packages
|
16. Install all the required user packages
|
||||||
```
|
```
|
||||||
pacman -S --noconfirm xorg-server xorg-xprop xorg-xkill xorg-xsetroot xorg-xinit \
|
pacman -S --noconfirm networkmanager git
|
||||||
noto-fonts noto-fonts-emoji noto-fonts-cjk ttf-jetbrains-mono-nerd ttf-font-awesome \
|
|
||||||
awesome-terminal-fonts bat libnotify dunst ntfs-3g \
|
|
||||||
jq mpv ncdu maim transmission-cli yt-dlp cowsay \
|
|
||||||
pacman-contrib pavucontrol rsync ripgrep ueberzug ffmpegthumbnailer python-pywal \
|
|
||||||
imlib2 xdotool xwallpaper zip unzip wget pcmanfm \
|
|
||||||
fzf man-db pipewire pipewire-pulse xcompmgr pamixer \
|
|
||||||
xclip sxhkd imagemagick lf connman wpa_supplicant git dash arc-gtk-theme papirus-icon-theme \
|
|
||||||
neovim lua rustup xdg-user-dirs mpd ncmpcpp unclutter \
|
|
||||||
zsh zsh-autosuggestions zathura zathura-pdf-poppler
|
|
||||||
```
|
```
|
||||||
|
|
||||||
17. Enable networkmanager or connman
|
17. Enable networkmanager
|
||||||
```
|
```
|
||||||
# network manager
|
|
||||||
systemctl enable NetworkManager.service
|
systemctl enable NetworkManager.service
|
||||||
|
|
||||||
# connman
|
|
||||||
systemctl enable connman.service
|
|
||||||
```
|
```
|
||||||
|
|
||||||
18. set shell
|
18. Set user permissions
|
||||||
```
|
|
||||||
rm /bin/sh
|
|
||||||
ln -s dash /bin/sh
|
|
||||||
```
|
|
||||||
|
|
||||||
20. Set user permissions
|
|
||||||
```
|
```
|
||||||
echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
||||||
```
|
```
|
||||||
|
|
||||||
21. Create user
|
19. Create user
|
||||||
```
|
```
|
||||||
useradd -m -G wheel -s /bin/zsh $username
|
useradd -m -G wheel $username
|
||||||
passwd $username
|
passwd $username
|
||||||
```
|
```
|
||||||
|
|
||||||
22. Setup dotfiles
|
|
||||||
```
|
|
||||||
cd $HOME
|
|
||||||
git clone --separate-git-dir=$HOME/.dotfiles git@github.com:krolyxon/dotfiles.git tmpdotfiles
|
|
||||||
rsync --recursive --verbose --exclude '.git' tmpdotfiles/ $HOME/
|
|
||||||
rm -r tmpdotfiles
|
|
||||||
```
|
|
||||||
|
|
||||||
23. dwm : Window Manager
|
|
||||||
```
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/dwm.git ~/.local/src/dwm
|
|
||||||
sudo make -C ~/.local/src/dwm install
|
|
||||||
```
|
|
||||||
|
|
||||||
24. dwmblocks: statusbar
|
|
||||||
```
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/dwmblocks.git ~/.local/src/dwmblocks
|
|
||||||
sudo make -C ~/.local/src/dwmblocks install
|
|
||||||
```
|
|
||||||
|
|
||||||
25. st: Terminal
|
|
||||||
```
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/st-luke.git ~/.local/src/st
|
|
||||||
sudo make -C ~/.local/src/st-luke install
|
|
||||||
```
|
|
||||||
|
|
||||||
26. dmenu: Program Menu
|
|
||||||
```
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/dmenu.git ~/.local/src/dmenu
|
|
||||||
sudo make -C ~/.local/src/dmenu install
|
|
||||||
```
|
|
||||||
|
|
||||||
27. nsxiv: image viewer
|
|
||||||
```
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/nsxiv.git ~/.local/src/nsxiv
|
|
||||||
sudo make -C ~/.local/src/nsxiv install
|
|
||||||
```
|
|
||||||
|
|
||||||
28. nvim: Text editor
|
|
||||||
```
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/nvim.git ~/.config/nvim
|
|
||||||
```
|
|
||||||
|
|
||||||
29. paru: AUR helper
|
|
||||||
```
|
|
||||||
git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -sri && cd .. && rm -rf paru-bin
|
|
||||||
paru -S --noconfirm htop-vim zsh-fast-syntax-highlighting-git keyd-git librewolf-bin
|
|
||||||
```
|
|
||||||
|
|
||||||
30. set zsh as default shell
|
|
||||||
```
|
|
||||||
chsh -s $(which zsh)
|
|
||||||
```
|
|
||||||
|
|
||||||
31. some symlinks and git alias
|
|
||||||
```
|
|
||||||
ln -s ~/.config/x11/xinitrc .xinitrc
|
|
||||||
ln -s ~/.config/shell/profile .zprofile
|
|
||||||
alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
||||||
dots config --local status.showUntrackedFiles no
|
|
||||||
```
|
|
||||||
|
|
|
||||||
|
|
@ -53,76 +53,23 @@ read efipartition
|
||||||
mkdir /boot/efi
|
mkdir /boot/efi
|
||||||
mount $efipartition /boot/efi
|
mount $efipartition /boot/efi
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archlinux --recheck
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archlinux --recheck
|
||||||
sed -i 's/quiet/pci=noaer/g' /etc/default/grub
|
read -rp "Do you want to set GRUB_TIMEOUT=0? (y/N): " confirm
|
||||||
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
|
if [[ "$confirm" =~ ^[Yy]$ ]]; then
|
||||||
|
sed -i 's/quiet/pci=noaer/g' /etc/default/grub
|
||||||
|
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/g' /etc/default/grub
|
||||||
|
fi
|
||||||
|
read -rp "Do you want to enable probing for other operating systems? (y/N): " confirm
|
||||||
|
if [[ "$confirm" =~ ^[Yy]$ ]]; then
|
||||||
|
echo "GRUB_DISABLE_OS_PROBER=false" >> /etc/default/grub
|
||||||
|
fi
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
pacman -S --noconfirm xorg-server xorg-xprop xorg-xkill xorg-xsetroot xorg-xinit \
|
pacman -S --noconfirm networkmanager git
|
||||||
noto-fonts noto-fonts-emoji noto-fonts-cjk ttf-jetbrains-mono-nerd ttf-font-awesome \
|
|
||||||
awesome-terminal-fonts bat libnotify dunst ntfs-3g \
|
|
||||||
jq mpv ncdu maim transmission-cli yt-dlp cowsay \
|
|
||||||
pacman-contrib pavucontrol rsync ripgrep ueberzug ffmpegthumbnailer python-pywal \
|
|
||||||
imlib2 xdotool xwallpaper zip unzip wget pcmanfm \
|
|
||||||
fzf man-db pipewire pipewire-pulse xcompmgr pamixer \
|
|
||||||
xclip sxhkd imagemagick lf connman wpa_supplicant git dash arc-gtk-theme papirus-icon-theme \
|
|
||||||
neovim lua rustup xdg-user-dirs mpd ncmpcpp unclutter \
|
|
||||||
zsh zsh-autosuggestions zathura zathura-pdf-poppler
|
|
||||||
|
|
||||||
systemctl enable connman.service
|
systemctl enable NetworkManager.service
|
||||||
rm /bin/sh
|
|
||||||
ln -s dash /bin/sh
|
|
||||||
# echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
||||||
echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
echo "%wheel ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
||||||
printf "\e[0;34mEnter Username: \e[0m"
|
printf "\e[0;34mEnter Username: \e[0m"
|
||||||
read username
|
read username
|
||||||
useradd -m -G wheel -s /bin/zsh $username
|
useradd -m -G wheel $username
|
||||||
passwd $username
|
passwd $username
|
||||||
echo "Pre-Installation Finish Reboot now"
|
echo "Installation Finish Reboot now"
|
||||||
ai3_path=/home/$username/arch_install3.sh
|
|
||||||
sed '1,/^#part3/d' arch_install2.sh > $ai3_path
|
|
||||||
chown $username:$username $ai3_path
|
|
||||||
chmod +x $ai3_path
|
|
||||||
su -c $ai3_path -s /bin/sh $username
|
|
||||||
exit
|
|
||||||
|
|
||||||
#part3
|
|
||||||
printf '\033c'
|
|
||||||
cd $HOME
|
|
||||||
git clone --separate-git-dir=$HOME/.dotfiles git@github.com:krolyxon/dotfiles.git tmpdotfiles
|
|
||||||
rsync --recursive --verbose --exclude '.git' tmpdotfiles/ $HOME/
|
|
||||||
rm -r tmpdotfiles
|
|
||||||
# dwm : Window Manager
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/dwm.git ~/.local/src/dwm
|
|
||||||
sudo make -C ~/.local/src/dwm install
|
|
||||||
|
|
||||||
# dwmblocks: statusbar
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/dwmblocks.git ~/.local/src/dwmblocks
|
|
||||||
sudo make -C ~/.local/src/dwmblocks install
|
|
||||||
|
|
||||||
# st: Terminal
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/st-luke.git ~/.local/src/st
|
|
||||||
sudo make -C ~/.local/src/st-luke install
|
|
||||||
|
|
||||||
# dmenu: Program Menu
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/dmenu.git ~/.local/src/dmenu
|
|
||||||
sudo make -C ~/.local/src/dmenu install
|
|
||||||
|
|
||||||
## nsxiv: image viewer
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/nsxiv.git ~/.local/src/nsxiv
|
|
||||||
sudo make -C ~/.local/src/nsxiv install
|
|
||||||
|
|
||||||
nvim: Text editor
|
|
||||||
git clone --depth=1 git@github.com:krolyxon/nvim.git ~/.config/nvim
|
|
||||||
|
|
||||||
# paru: AUR helper
|
|
||||||
git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -sri && cd .. && rm -rf paru-bin
|
|
||||||
paru -S --noconfirm htop-vim \
|
|
||||||
zsh-fast-syntax-highlighting-git keyd-git librewolf-bin
|
|
||||||
|
|
||||||
chsh -s $(which zsh)
|
|
||||||
|
|
||||||
ln -s ~/.config/x11/xinitrc .xinitrc
|
|
||||||
ln -s ~/.config/shell/profile .zprofile
|
|
||||||
alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
||||||
dots config --local status.showUntrackedFiles no
|
|
||||||
exit
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue