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 betterdiscordctl-git
betterlockscreen betterlockscreen
bitwarden bitwarden
bitwarden-dmenu
bitwarden-cli
canon-pixma-ts5055-complete
canto-next-git canto-next-git
capt-src capt-src
checkupdates+aur checkupdates+aur
@ -28,12 +29,14 @@ jetbrains-toolbox
ly ly
mailspring mailspring
mconnect-git mconnect-git
mutt-wizard
ncpamixer ncpamixer
nerd-fonts-hack nerd-fonts-hack
notion-app notion-app
notion-enhancer notion-enhancer
numix-icon-theme-git numix-icon-theme-git
nvm nvm
pam-gnupg
perl-checkupdates-aur perl-checkupdates-aur
perl-www-aur perl-www-aur
pipes.sh 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 cryptsetup open --key-file="/root/.keys/root-keyfile" "$device"3 root
mkfs.ext4 /dev/mapper/root mkfs.ext4 /dev/mapper/root
mkdir /mnt/sys mkdir /mnt/sys
mount "$device"1 /mnt/sys
mount /dev/mapper/root /mnt/sys
mkdir /mnt/sys/boot mkdir /mnt/sys/boot
mount "$device"1 /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 echo -e "en_US.UTF-8 UTF-8\ntr_TR.UTF-8 UTF-8" > /etc/locale.gen
locale-gen locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "KEYMAP=trq" > /etc/vconsole.conf
echo "tatooine" > /etc/hostname echo "tatooine" > /etc/hostname
git clone https://aur.archlinux.org/yay.git /tmp/yay
(cd /tmp/yay; makepkg -si)
systemctl enable fstrim.timer systemctl enable fstrim.timer
echo -e "127.0.0.1 localhost\n::1 localhost\n127.0.0.1 tatooine.localdomain tatooine" > /etc/hosts echo -e "127.0.0.1 localhost\n::1 localhost\n127.0.0.1 tatooine.localdomain tatooine" > /etc/hosts
cat << EOF > /etc/mkinitcpio.conf cat << EOF > /etc/mkinitcpio.conf
MODULES=(vfat)
MODULES=(vfat i915)
BINARIES=() BINARIES=()
FILES=() 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 EOF
cat << EOF > /etc/initcpio/hooks/openswap cat << EOF > /etc/initcpio/hooks/openswap
@ -43,7 +40,7 @@ build ()
help () help ()
{ {
cat<<HELPEOF 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 HELPEOF
} }
EOF EOF
@ -65,4 +62,22 @@ cat /install/nonAUR.txt | xargs pacman -S --needed --noconfirm
yay -S $(cat /install/AUR.txt) yay -S $(cat /install/AUR.txt)
refind-install refind-install
pacman -S plymouth
mkinitcpio -P 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 ack
alacritty alacritty
arandr arandr
@ -21,6 +22,7 @@ chrony
cmake cmake
code code
conky conky
cronie
ctags ctags
cups cups
cups-pdf cups-pdf
@ -63,6 +65,7 @@ inkscape
intel-ucode intel-ucode
ipython ipython
irssi irssi
isync
jdk11-openjdk jdk11-openjdk
jq jq
jre11-openjdk jre11-openjdk
@ -85,14 +88,18 @@ make
mariadb mariadb
mlocate mlocate
mpv mpv
msmtp
mysql-workbench mysql-workbench
nemo nemo
neofetch neofetch
neomutt
neovim neovim
net-tools net-tools
networkmanager networkmanager
newsboat
nextcloud-client nextcloud-client
ngrok ngrok
notmuch
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji
npm npm
@ -170,6 +177,7 @@ ttf-joypixels
ttf-linux-libertine ttf-linux-libertine
ueberzug ueberzug
unzip unzip
urlview
vi vi
virtualbox virtualbox
virtualbox-host-dkms virtualbox-host-dkms


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

@ -1,4 +1,4 @@
#!/bin/bash #!/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 header_cache = /home/yigit/.cache/mutt-wizard/yigitcolakoglu@hotmail.com/headers
set message_cachedir = /home/yigit/.cache/mutt-wizard/yigitcolakoglu@hotmail.com/bodies set message_cachedir = /home/yigit/.cache/mutt-wizard/yigitcolakoglu@hotmail.com/bodies
set mbox_type = Maildir 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 bind index,pager gg noop
@ -18,7 +18,6 @@ bind index,pager C noop
bind index gg first-entry bind index gg first-entry
unmailboxes * unmailboxes *
unalternates * unalternates *
unset signature
unmacro index o unmacro index o
macro index o "<shell-escape>mw -y yigitcolakoglu@hotmail.com<enter>" "run mbsync to sync yigitcolakoglu@hotmail.com" 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 Yiğit Çolakoğlu
=================== ===================
Senior Student at Ted Ankara College Foundation High School Senior Student at Ted Ankara College Foundation High School


Loading…
Cancel
Save