Browse Source

Improved install script

main
Yiğit Çolakoğlu 4 years ago
parent
commit
c9690c55b2
7 changed files with 37 additions and 13 deletions
  1. +4
    -1
      arch-setup/AUR.txt
  2. +1
    -1
      arch-setup/arch-setup.sh
  3. +21
    -6
      arch-setup/chroot.sh
  4. +8
    -0
      arch-setup/nonAUR.txt
  5. +2
    -2
      arch-setup/plist.sh
  6. +1
    -2
      mail/mutt/accounts/1-yigitcolakoglu@hotmail.com.muttrc
  7. +0
    -1
      mail/mutt/accounts/1-yigitcolakoglu@hotmail.com.sig

+ 4
- 1
arch-setup/AUR.txt View File

@ -5,7 +5,8 @@ betterdiscord
betterdiscordctl-git
betterlockscreen
bitwarden
bitwarden-dmenu
bitwarden-cli
canon-pixma-ts5055-complete
canto-next-git
capt-src
checkupdates+aur
@ -28,12 +29,14 @@ jetbrains-toolbox
ly
mailspring
mconnect-git
mutt-wizard
ncpamixer
nerd-fonts-hack
notion-app
notion-enhancer
numix-icon-theme-git
nvm
pam-gnupg
perl-checkupdates-aur
perl-www-aur
pipes.sh


+ 1
- 1
arch-setup/arch-setup.sh View File

@ -44,7 +44,7 @@ echo "[INFO]: Keyfile saved to /root/.keys/root-keyfile"
cryptsetup open --key-file="/root/.keys/root-keyfile" "$device"3 root
mkfs.ext4 /dev/mapper/root
mkdir /mnt/sys
mount "$device"1 /mnt/sys
mount /dev/mapper/root /mnt/sys
mkdir /mnt/sys/boot
mount "$device"1 /mnt/sys/boot


+ 21
- 6
arch-setup/chroot.sh View File

@ -5,19 +5,16 @@ hwclock --systohc
echo -e "en_US.UTF-8 UTF-8\ntr_TR.UTF-8 UTF-8" > /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "KEYMAP=trq" > /etc/vconsole.conf
echo "tatooine" > /etc/hostname
git clone https://aur.archlinux.org/yay.git /tmp/yay
(cd /tmp/yay; makepkg -si)
systemctl enable fstrim.timer
echo -e "127.0.0.1 localhost\n::1 localhost\n127.0.0.1 tatooine.localdomain tatooine" > /etc/hosts
cat << EOF > /etc/mkinitcpio.conf
MODULES=(vfat)
MODULES=(vfat i915)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt filesystems fsck)
HOOKS=(base udev plymouth autodetect keyboard keymap consolefont modconf block plymouth-encrypt openswap resume filesystems fsck)
EOF
cat << EOF > /etc/initcpio/hooks/openswap
@ -43,7 +40,7 @@ build ()
help ()
{
cat<<HELPEOF
This opens the swap encrypted partition $(cat /install/device)1 in /dev/mapper/swap
This opens the swap encrypted partition $(cat /install/device)2 in /dev/mapper/swap
HELPEOF
}
EOF
@ -65,4 +62,22 @@ cat /install/nonAUR.txt | xargs pacman -S --needed --noconfirm
yay -S $(cat /install/AUR.txt)
refind-install
pacman -S plymouth
mkinitcpio -P
echo "Please enter name for regular user:"
read username
useradd -m $username
echo "Set password for user $username: "
passwd $username
su $username
git clone https://aur.archlinux.org/yay.git /tmp/yay
(cd /tmp/yay; makepkg -si)
git clone --recurse-submodules https://github.com/theFr1nge/dotfiles.git ~/.dotfiles
(cd ~/.dotfiles; ./install.sh)

+ 8
- 0
arch-setup/nonAUR.txt View File

@ -1,3 +1,4 @@
abook
ack
alacritty
arandr
@ -21,6 +22,7 @@ chrony
cmake
code
conky
cronie
ctags
cups
cups-pdf
@ -63,6 +65,7 @@ inkscape
intel-ucode
ipython
irssi
isync
jdk11-openjdk
jq
jre11-openjdk
@ -85,14 +88,18 @@ make
mariadb
mlocate
mpv
msmtp
mysql-workbench
nemo
neofetch
neomutt
neovim
net-tools
networkmanager
newsboat
nextcloud-client
ngrok
notmuch
noto-fonts
noto-fonts-emoji
npm
@ -170,6 +177,7 @@ ttf-joypixels
ttf-linux-libertine
ueberzug
unzip
urlview
vi
virtualbox
virtualbox-host-dkms


+ 2
- 2
arch-setup/plist.sh View File

@ -1,4 +1,4 @@
#!/bin/bash
pacman -Qqe | grep -v "$(pacman -Qqm)" > ~/.dotfiles/chroot/nonAUR.txt
pacman -Qqm > ~/.dotfiles/chroot/AUR.txt
pacman -Qqe | grep -v "$(pacman -Qqm)" | grep -v yay > ~/.dotfiles/arch-setup/nonAUR.txt
pacman -Qqm | grep -v canon > ~/.dotfiles/arch-setup/AUR.txt

+ 1
- 2
mail/mutt/accounts/1-yigitcolakoglu@hotmail.com.muttrc View File

@ -8,7 +8,7 @@ set folder = "/home/yigit/.local/share/mail/yigitcolakoglu@hotmail.com"
set header_cache = /home/yigit/.cache/mutt-wizard/yigitcolakoglu@hotmail.com/headers
set message_cachedir = /home/yigit/.cache/mutt-wizard/yigitcolakoglu@hotmail.com/bodies
set mbox_type = Maildir
set signature = "/home/yigit/.config/mutt/accounts/1-yigitcolakoglu@hotmail.com.sig"
set signature = "/home/yigit/.config/mutt/accounts/1-yigitcolakoglu@hotmail.com.sig"
bind index,pager gg noop
@ -18,7 +18,6 @@ bind index,pager C noop
bind index gg first-entry
unmailboxes *
unalternates *
unset signature
unmacro index o
macro index o "<shell-escape>mw -y yigitcolakoglu@hotmail.com<enter>" "run mbsync to sync yigitcolakoglu@hotmail.com"


+ 0
- 1
mail/mutt/accounts/1-yigitcolakoglu@hotmail.com.sig View File

@ -1,4 +1,3 @@
--
Yiğit Çolakoğlu
===================
Senior Student at Ted Ankara College Foundation High School


Loading…
Cancel
Save