-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
88 lines (46 loc) · 1.86 KB
/
setup.sh
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
#!/bin/bash
cat logo/logo ;
echo "/MiSTer /media/fat ciopfs allow_other,default_permissions,use_ino,attr_timeout=0 0 0" | tee -a /etc/fstab ;
echo "SystemMaxUse=20M" | tee -a /etc/systemd/journald.conf ;
echo "%wheel ALL=(ALL:ALL) PASSWD: ALL" | tee -a /etc/sudoers ;
echo "[monsieur]" | tee -a /etc/pacman.conf ;
echo "SigLevel = Optional TrustAll" | tee -a /etc/pacman.conf ;
echo "Server = https://github.com/MOnSieurFPGA/MOnSieurFPGA-Packages/releases/download/Packages" | tee -a /etc/pacman.conf ;
journalctl --vacuum-size=1M ;
pacman-key --init ;
pacman-key --populate archlinuxarm ;
pacman -Sy rsync lockfile-progs ;
pacman -U preinstall/* ;
systemctl enable log2ram ;
systemctl restart log2ram ;
mkdir /MiSTer ;
growpart /dev/mmcblk0 3 ;
resize2fs /dev/mmcblk0p3 ;
pacman -U --overwrite "*" packages/* ;
pacman -Syuu ;
mkdir -p /media/fat ;
mkdir /media/usb0 ;
mkdir /media/usb1 ;
ciopfs /MiSTer /media/fat ;
pacman -Syu exfat-utils git go-ipfs networkmanager bluez bluez-utils sudo wget unzip bash cifs-utils ntfs-3g imlib2 freetype2 ;
usermod -aG wheel alarm ;
rm -rf /media/fat/* ;
pacman -Sy MiSTer-Devel-Bin MiSTer-Devel-Support MiSTer-Devel-Menu MiSTer-Linux-Addons --overwrite "*" ;
systemctl enable MiSTer ;
systemctl restart MiSTer ;
cp MiSTer.ini /media/fat ;
######## UNCOMMENT THESE BELOW IF NOT USING CIOPFS MOUNT IN FSTAB
# mv /media/fat/Shadow_Masks /media/fat/shadow_masks ;
# mv /media/fat/Presets /media/fat/presets ;
# mv /media/fat/Cheats /media/fat/cheats ;
# mv /media/fat/Filters /media/fat/filters ;
# mv /media/fat/Filters_Audio /media/fat/filters_audio ;
# mv /media/fat/Gamma /media/fat/gamma ;
chown -R alarm /media/fat ;
systemctl enable NetworkManager ;
systemctl restart NetworkManager ;
systemctl enable bluetooth ;
systemctl restart bluetooth ;
echo "Finished! Restarting in 2 seconds, have fun!" ;
sleep 2 ;
reboot