warding 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/warding.rb +14 -8
- data/lib/warding/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c6e2a5ecc183e76cc17c2a4c16379223a2196b8ac65058318d8807629d0596f
|
4
|
+
data.tar.gz: d76f2e4d69c808200b9381b77ebe3e4d3f55c50952d3eb717085af8d916b0e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b60126b88ec985713877eea1403449cce055c54ee958daf2a38b1a7a9bf77b4453373267262e2e41fc2b923d362a7e6a846181c8b53d2c7ece343b4566dd369
|
7
|
+
data.tar.gz: 16f7123ff0d1dec8da58a4e7b6cff307d5a25185fa677493f1721647cf0ff370f8e6fec33cd8c1f8c5ce0707a2bceac018ad3c66696418d2e08eed34fa81838d
|
data/README.md
CHANGED
@@ -20,6 +20,11 @@ gem install warding
|
|
20
20
|
|
21
21
|
## Tasklist
|
22
22
|
|
23
|
+
* Move base packages to `pacstrap`.
|
24
|
+
* Fix steps that contain pipes.
|
25
|
+
* Add `EDITOR` setting.
|
26
|
+
* Add AUR support.
|
27
|
+
* Add `NetworkManager` support.
|
23
28
|
* Code missing features.
|
24
29
|
* Add extra checks.
|
25
30
|
* Test installation.
|
data/lib/warding.rb
CHANGED
@@ -156,7 +156,7 @@ module Warding
|
|
156
156
|
|
157
157
|
def setup_packages
|
158
158
|
`pacman -Sy`
|
159
|
-
`pacstrap /mnt base base-devel`
|
159
|
+
`pacstrap /mnt base base-devel linux linux-firmware lvm2 mkinitcpio man-db nano fuse wget openbsd-netcat dhcpcd samba openssh openvpn unzip vim git zsh`
|
160
160
|
`genfstab -U /mnt >> /mnt/etc/fstab`
|
161
161
|
end
|
162
162
|
|
@@ -175,7 +175,6 @@ module Warding
|
|
175
175
|
|
176
176
|
`arch-chroot /mnt echo -e "#{password}\n#{password}" | passwd`
|
177
177
|
|
178
|
-
`arch-chroot /mnt pacman -Sy linux lvm2 mkinitcpio --noconfirm`
|
179
178
|
`sed -i "/^HOOK/s/filesystems/lvm2 filesystems/" /mnt/etc/mkinitcpio.conf`
|
180
179
|
`arch-chroot /mnt mkinitcpio -p linux`
|
181
180
|
`arch-chroot /mnt pacman -S intel-ucode --noconfirm`
|
@@ -200,21 +199,21 @@ module Warding
|
|
200
199
|
|
201
200
|
def setup_usability
|
202
201
|
# TODO: include gnome desktop
|
203
|
-
`arch-chroot /mnt pacman -S
|
202
|
+
`arch-chroot /mnt pacman -S xorg-server xf86-video-intel plasma konsole dolphin kmix sddm kvantum-qt5 --noconfirm`
|
204
203
|
`mkdir /mnt/etc/sddm.conf.d`
|
205
204
|
`echo "[Theme]\nCurrent=breeze" > /mnt/etc/sddm.conf.d/theme.conf`
|
206
205
|
`echo "[Autologin]\nUser=root" > /mnt/etc/sddm.conf.d/login.conf`
|
207
206
|
`arch-chroot /mnt systemctl enable dhcpcd`
|
208
207
|
`arch-chroot /mnt systemctl enable sddm`
|
209
|
-
`arch-chroot /mnt wget -
|
210
|
-
`arch-chroot /mnt wget -
|
208
|
+
`arch-chroot /mnt wget -q https://blackarch.org/strap.sh -O /tmp/strap.sh; bash /tmp/strap.sh`
|
209
|
+
`arch-chroot /mnt wget -q https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O /tmp/zsh.sh; bash /tmp/zsh.sh`
|
211
210
|
end
|
212
211
|
|
213
212
|
setup_usability
|
214
213
|
|
215
214
|
def setup_visuals
|
216
|
-
`arch-chroot /mnt wget -
|
217
|
-
`arch-chroot /mnt wget -
|
215
|
+
`arch-chroot /mnt wget -q https://raw.githubusercontent.com/PapirusDevelopmentTeam/arc-kde/master/install.sh -O /tmp/theme.sh; bash /tmp/theme.sh`
|
216
|
+
`arch-chroot /mnt wget -q https://git.io/papirus-icon-theme-install -O /tmp/papirus.sh; bash /tmp/papirus.sh`
|
218
217
|
end
|
219
218
|
|
220
219
|
setup_visuals if data[:extra_settings].include?("themes")
|
@@ -229,10 +228,17 @@ module Warding
|
|
229
228
|
setup_extras if data[:extra_settings].include?("tools")
|
230
229
|
|
231
230
|
def setup_cron
|
232
|
-
|
231
|
+
`arch-chroot /mnt pacman -S cronie --noconfirm`
|
232
|
+
`systemctl enable cronie`
|
233
|
+
`#!/bin/bash\nreflector --latest 25 --sort rate --save /etc/pacman.d/mirrorlist > /etc/cron.hourly/mirrorlist`
|
234
|
+
`#!/bin/bash\npacman -Sy > /etc/cron.weekly/pacmansync`
|
235
|
+
`#!/bin/bash\npacman -Syu --noconfirm > /etc/cron.monthly/systemupgrade`
|
233
236
|
end
|
234
237
|
|
238
|
+
setup_cron if data[:extra_settings].include?("cron")
|
239
|
+
|
235
240
|
def finish
|
241
|
+
`umount -R /mnt`
|
236
242
|
`reboot`
|
237
243
|
end
|
238
244
|
|
data/lib/warding/version.rb
CHANGED