-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
137 lines (118 loc) · 2.76 KB
/
Copy pathinstall.sh
File metadata and controls
137 lines (118 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#rmmod pcspkr # disable to beep on error
#fdisk -l
#cfdisk /dev/nvme0n1 #if SSD or HDD is /dev/nvme0n1
#(create / partition(type=linux) and remenber device name)
#(for example)
#
#root partition: /dev/nvme0n1p5
#efi system: /dev/nvme0n1p1
#
#Format & mount partitions
#mkfs.ext4 /dev/nvme0n1p5
#mount /dev/nvme0n1p5 /mnt
#mkdir /mnt/efi
## if command below doesn't work
## mkfs.vfat -F32 /dev/nvme0n1p1
#mount /dev/nvme0n1p1 /mnt/efi
#when wlan is disabled
#rfkill unblock wlan
#ip link set wlan0 up
#iwctl
#station wlan0 get-networks
#station wlan0 connect aterm*g
#(enter password)
#exit
#ip a
isfullinstallation=true
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Japan /etc/localtime
hwclock -w
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'mxvish' > /etc/hostname
echo -e "
127.0.0.1\tlocalhost
::1\t\tlocalhost
127.0.0.1\t$HOSTNAME.localdomain\t$HOSTNAME" >> /etc/hosts
pacman -Syu --noconfirm dhcpcd dialog efibootmgr grub ifplugd iwd os-prober vim
useradd -G wheel,audio,video -m $HOSTNAME
passwd $HOSTNAME
grub-install --target=x86_64-efi --efi-directory=/efi/
sed -i 's/#GRUB_DISABLE_OS_PROBER=false/GRUB_DISABLE_OS_PROBER=false/' /etc/default/grub
echo 'GRUB_CMDLINE_LINUX_DEFAULT="psmouse.synaptics_intertouch=1 quiet snd-hda-intel.model=dell-headset-multi"' >> /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
passwd
#setup for wifi
systemctl enable dhcpcd.service
systemctl start dhcpcd.service
systemctl enable iwd.service
systemctl start iwd.service
systemctl enable systemd-resolved.service
systemctl start systemd-resolved.service
echo '[General]
EnableNetworkConfiguration=true
[Network]
NameResolvingService=systemd' > /etc/iwd/main.conf
fullinstall(){
packages=(
acpilight
bash-completion
bluedevil
brightnessctl
btop
dmenu
emacs-nox
exfatprogs
fastfetch
fcitx5
fcitx5-configtool
fcitx5-gtk
fcitx5-mozc
feh
firefox
gcc
git
i3-wm
i3lock
i3status
lxterminal
make
man
nasm
npm
noto-fonts-emoji
noto-fonts-cjk
pipewire
pipewire-pulse
polkit
qemu-desktop
r
ranger
sudo
tree
unzip
xclip
xorg-server
xorg-xinit
xterm
)
for i in "${packages[@]}"; do pacman -Syu --noconfirm "$i"; done
mkdir /mnt/usb
mkdir /etc/X11/xorg.conf.d
echo 'Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "Tapping" "True"
Option "TappingDrag" "True"
Driver "libinput"
EndSection' > /etc/X11/xorg.conf.d/40-libinput.conf
}
if [ $isfullinstallation ]; then
fullinstall
fi
exit
reboot