-
Notifications
You must be signed in to change notification settings - Fork 0
/
2.run
executable file
·62 lines (51 loc) · 1.37 KB
/
2.run
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
#!/bin/bash
# --------
# LOCALES
# --------
sed -i \
-e 's/#pl_PL\.U/pl_PL.U/g'\
-e 's/#en_US\.U/en_US.U/g'\
-e 's/#el_GR\.U/el_GR.U/g'\
-e 's/#he_IL\.U/he_IL.U/g'\
/etc/locale.gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'KEYMAP=pl' > /etc/vconsole.conf
echo 'arch' > /etc/hostname
hostname arch
locale-gen
# -----
# TIME
# -----
ln -sf /usr/share/zoneinfo/Europe/Warsaw /etc/localtime
hwclock --systohc
timedatectl set-ntp
# -------------
# MAKEPKG.CONF
# -------------
sed -i 's/#MAKE.*/MAKEFLAGS="-j'$(nproc)'"/g' /etc/makepkg.conf
# ----------
# MAKE USER
# ----------
groupadd akhetopnu
useradd -m -g akhetopnu -G audio,video,wheel akhetopnu
/* useradd -m -g users -G audio,video,wheel akhetopnu */
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
echo 'Set password for akhetopnu:'
passwd akhetopnu
echo 'Set password for root:'
passwd
# ----------------------------
# DOWNLOAD SCRIPT FROM GITHUB
# ----------------------------
cd /etc/pacman.d/
rm mirrorlist
wget https://raw.githubusercontent.com/Akhetopnu/ArchLinux/master/files/mirrorlist
cd /home/akhetopnu
wget -O 3.run https://raw.githubusercontent.com/Akhetopnu/ArchLinux/master/3.run
chmod +x 3.run
chown akhetopnu 3.run
su -c "$(pwd)/3.run" - akhetopnu
mkinitcpio -p linux
grub-install --target=i386-pc /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit