-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeatherBalloon.sh
102 lines (69 loc) · 4.25 KB
/
WeatherBalloon.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
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
clear
echo " __ __ _ _ 1 ____ _ _ "
echo " \ \ / / | | | | | _ \ | | | | "
echo " \ \ /\ / / ___ __ _ | |_ | |__ ___ _ __ | |_) | __ _ | | | | ___ ___ _ __ "
echo " \ \/ \/ / / _ \ / _ | | __| | '_ \ / _ \ | '__| | _ < / _ | | | | | / _ \ / _ \ | _ \ "
echo " \ /\ / | __/ | (_| | | |_ | | | | | __/ | | | |_) | | (_| | | | | | | (_) | | (_) | | | | | "
echo " \/ \/ \___| \__,_| \__| |_| |_| \___| |_| |____/ \__,_| |_| |_| \___/ \___/ |_| |_| "
echo " --------------------------------------------------------------------------------------------------------------- "
echo " Welcome to playfulCloud's Weather Balloon - Arch Linux Install script "
echo " --------------------------------------------------------------------------------------------------------------- "
echo ""
echo ""
echo " Please enter which type of Cloud are you? "
echo " 1 - NimboStratus - Desktop "
echo " 2 - CumuloNimbus - Remote "
read -p " Enter correct number: " type
loadkeys pl
timedatectl set-ntp true
if [ $type -eq 1 ] ; then
computerName = "NimboStratus"
echo " --------------------------------------------------------------------------------------------------------------- "
echo " __ _ _ __ _ _ "
echo " /\ \ (_)_ __ ___ | |__ ___ / _\ |_ _ __ __ _| |_ _ _ ___ "
echo " / \/ / | _ _ \| _ \ / _ \ \| __| __/ _ | __| | | / __| "
echo " / /\ /| | | | | | | |_) | (_) |\ \ |_| | | (_| | |_| |_| \__ \ "
echo " \_\ \/ |_|_| |_| |_|_.__/ \___/\__/\__|_| \__,_|\__|\__,_|___/ "
#echo " --------------------------------------------------------------------------------------------------------------- "
ip addr show
else
computerName = "CumuloNimbus"
echo " --------------------------------------------------------------------------------------------------------------- "
echo " ___ _ __ _ _ "
echo " / __\ _ _ __ ___ _ _| | ___ /\ \ (_)_ __ ___ | |__ _ _ ___ "
echo " / / | | | | _ _ \| | | | |/ _ \ / \/ / | _ _ \| _ \| | | / __| "
echo " / /__| |_| | | | | | | |_| | | (_) / /\ /| | | | | | | |_) | |_| \__ \ "
echo " \____/\__,_|_| |_| |_|\__,_|_|\___/\_\ \/ |_|_| |_| |_|_.__/ \__,_|___/ "
echo " --------------------------------------------------------------------------------------------------------------- "
echo " Now we will set up internet connection: "
iwctl
device list
read -p " Enter the interface name you want to connect: " interface
station $interface scan
station $interface get-networks
read -p " Enter the wireless network name you want to connect: " network
station $interface connect $network
echo " CTRL + D -> to exit iwctl prompt"
echo " --------------------------------------------------------------------------------------------------------------- "
echo " Check if the ip adress is aquired"
ip addr show
echo " If ping went well your network is set"
ping -c 2 8.8.8.8
pacman -S mesa
fi
echo " --------------------------------------------------------------------------------------------------------------- "
lsblk
read -p "Enter the name of the EFI partition: " sda1
read -p "Enter the name of the Linux File System partition: " sda2
mkfs.fat -F32 /dev/$sda1
mkfs.ext4 /dev/$sda2
mount /dev/$sda2 /mnt
mkdir /mnt/boot
mkdir /mnt/boot/efi
mount /dev/$sda1 /mnt/boot
pacstrap /mnt base base-devel linux linux-firmware vim vifm
genfstab -U /mnt >> /mnt/etc/fstab
mkdir /mnt/Balloon
cp WeatherBalloon2.sh /mnt/Balloon/
arch-chroot /mnt ./Balloon/WeatherBalloon2.sh