Browse code

Various minor updates and additions I somehow didn't upload before.

Apollia authored on08/02/2020 18:43:14
Showing13 changed files
... ...
@@ -6,4 +6,6 @@ lupu_devx_528-4.sfs
6 6
 DevX.iso
7 7
 VirtualBox_Guest_Setup_Scripts.iso
8 8
 Private/
9
-VM Config/
10 9
\ No newline at end of file
10
+VM Config/
11
+log*.txt
12
+Log*.txt
11 13
\ No newline at end of file
12 14
new file mode 100644
... ...
@@ -0,0 +1,31 @@
1
+#!/bin/bash
2
+
3
+
4
+VDI_Num=1
5
+
6
+VM_Num=1
7
+
8
+Port_Num=1
9
+
10
+
11
+readonly Script_Title="Attach Hotswap VDI $VDI_Num to VM$VM_Num Port $Port_Num"
12
+
13
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
14
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
15
+
16
+
17
+VM_Name=$(platz "APSK VirtualBox Guest Setup - VM$VM_Num")
18
+
19
+Fillepath____Hotswap_VDI=$(platz "APSK VirtualBox Guest Setup - Hotswap VDI $VDI_Num")
20
+
21
+
22
+echo "VM_Name: $VM_Name"
23
+
24
+echo "Fillepath____Hotswap_VDI: $Fillepath____Hotswap_VDI"
25
+
26
+
27
+
28
+VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
29
+--medium "$Fillepath____Hotswap_VDI" \
30
+--port "$Port_Num"
31
+
0 32
new file mode 100644
... ...
@@ -0,0 +1,31 @@
1
+#!/bin/bash
2
+
3
+
4
+VDI_Num=1
5
+
6
+VM_Num=1
7
+
8
+Port_Num=4
9
+
10
+
11
+readonly Script_Title="Attach Hotswap VDI $VDI_Num to VM$VM_Num Port $Port_Num"
12
+
13
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
14
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
15
+
16
+
17
+VM_Name=$(platz "APSK VirtualBox Guest Setup - VM$VM_Num")
18
+
19
+Fillepath____Hotswap_VDI=$(platz "APSK VirtualBox Guest Setup - Hotswap VDI $VDI_Num")
20
+
21
+
22
+echo "VM_Name: $VM_Name"
23
+
24
+echo "Fillepath____Hotswap_VDI: $Fillepath____Hotswap_VDI"
25
+
26
+
27
+
28
+VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
29
+--medium "$Fillepath____Hotswap_VDI" \
30
+--port "$Port_Num"
31
+
... ...
@@ -25,11 +25,14 @@ VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
25 25
 --medium "$Fillepath____Hotswap_VDI_1" \
26 26
 --port "0"
27 27
 
28
+sleep 5
28 29
 
29 30
 VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
30 31
 --medium "$Fillepath____Hotswap_VDI_2" \
31 32
 --port "2"
32 33
 
34
+sleep 5
35
+
33 36
 VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
34 37
 --medium "$Fillepath____Hotswap_VDI_3" \
35 38
 --port "3"
36 39
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+
4
+readonly Script_Title="Jockey - Set apphoard VDI-related platzes"
5
+
6
+
7
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
8
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
9
+		
10
+		cd "$Follpath____This_Script"
11
+		
12
+
13
+bash "Apphoard VDI-Related Platzes - Apbin-1"
14
+bash "Apphoard VDI-Related Platzes - APSK-GLMP-GTK-1"
15
+bash "Apphoard VDI-Related Platzes - Festival-1"
0 16
\ No newline at end of file
1 17
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+#!/bin/bash
2
+
3
+readonly Script_Title="Hotswap VDI 1, 2, 3 = [Apbin], [Festival], [APSK-GLMP-GTK]"
4
+
5
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
6
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
7
+
8
+
9
+VDI_Nickname="Apbin"
10
+
11
+VDI_Num=1
12
+
13
+Fillepath____Hotswap_VDI_1="$(platz "Fillepath - Host VDI" "APSK VirtualBox Guest Setup - Host Apphoard VDI nicknamed $VDI_Nickname")"
14
+
15
+noteplatz "APSK VirtualBox Guest Setup - Hotswap VDI $VDI_Num" "$Fillepath____Hotswap_VDI_1"
16
+
17
+
18
+VDI_Nickname="Festival"
19
+
20
+VDI_Num=2
21
+
22
+Fillepath____Hotswap_VDI_2="$(platz "Fillepath - Host VDI" "APSK VirtualBox Guest Setup - Host Apphoard VDI nicknamed $VDI_Nickname")"
23
+
24
+noteplatz "APSK VirtualBox Guest Setup - Hotswap VDI $VDI_Num" "$Fillepath____Hotswap_VDI_2"
25
+
26
+
27
+VDI_Nickname="APSK-GLMP-GTK"
28
+
29
+VDI_Num=3
30
+
31
+Fillepath____Hotswap_VDI_3="$(platz "Fillepath - Host VDI" "APSK VirtualBox Guest Setup - Host Apphoard VDI nicknamed $VDI_Nickname")"
32
+
33
+noteplatz "APSK VirtualBox Guest Setup - Hotswap VDI $VDI_Num" "$Fillepath____Hotswap_VDI_3"
34
+
35
+
36
+
37
+
0 38
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+VM_Name="Win10"
4
+
5
+VM_Nickname="Win10"
6
+
7
+readonly Script_Title="$VM_Nickname VM Name"
8
+
9
+
10
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
11
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
12
+
13
+
14
+noteplatz "APSK VirtualBox Guest Setup - VM Name - $VM_Nickname" "$VM_Name"
15
+
0 16
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+
4
+VM_Nickname="Win10"
5
+
6
+VM="$(platz "APSK VirtualBox Guest Setup - VM Name - $VM_Nickname")"
7
+
8
+
9
+readonly Script_Title="VM1 = $VM"
10
+
11
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
12
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
13
+
14
+
15
+noteplatz 'APSK VirtualBox Guest Setup - VM1' "$VM"
0 16
\ No newline at end of file
1 17
new file mode 100644
... ...
@@ -0,0 +1,44 @@
1
+#!/bin/bash
2
+
3
+# 17:37:06 01/22/2020.
4
+#
5
+# WARNING: Be careful when detaching!  It's possible to lose data if you yank
6
+# a writably-mounted disk out of a computer, even a virtual computer.
7
+#
8
+# Also, be careful not to detach the wrong disk.  If you have multiple VDIs
9
+# (virtual hard disk files) connected, you might want to check your VM's
10
+# Storage settings in the VirtualBox GUI, to find out for sure which ports
11
+# each of your VDIs are connected to.
12
+#
13
+#
14
+# If the VDI you wish to detach was mounted writably by the guest - before you
15
+# detach that VDI with a host script (such as this one) or a host console
16
+# command, do the following 2 steps IN THE GUEST, NOT THE HOST:
17
+# 
18
+# 	1) Run the "sync" command in the guest.
19
+#	2) In the guest, unmount the disk.
20
+#
21
+# The above steps are skippable if the guest didn't mount the disk, or
22
+# if the guest read-only-mounted the disk.
23
+#
24
+# Again, be careful not to detach the wrong disk.
25
+
26
+
27
+VM_Num=1
28
+
29
+Port_Num=1
30
+
31
+
32
+readonly Script_Title="Detach VDI from VM$VM_Num Port $Port_Num"
33
+
34
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
35
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
36
+
37
+
38
+VM_Name=$(platz "APSK VirtualBox Guest Setup - VM$VM_Num")
39
+
40
+
41
+VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
42
+--medium none \
43
+--port "$Port_Num"
44
+
0 45
new file mode 100644
... ...
@@ -0,0 +1,44 @@
1
+#!/bin/bash
2
+
3
+# 17:37:06 01/22/2020.
4
+#
5
+# WARNING: Be careful when detaching!  It's possible to lose data if you yank
6
+# a writably-mounted disk out of a computer, even a virtual computer.
7
+#
8
+# Also, be careful not to detach the wrong disk.  If you have multiple VDIs
9
+# (virtual hard disk files) connected, you might want to check your VM's
10
+# Storage settings in the VirtualBox GUI, to find out for sure which ports
11
+# each of your VDIs are connected to.
12
+#
13
+#
14
+# If the VDI you wish to detach was mounted writably by the guest - before you
15
+# detach that VDI with a host script (such as this one) or a host console
16
+# command, do the following 2 steps IN THE GUEST, NOT THE HOST:
17
+# 
18
+# 	1) Run the "sync" command in the guest.
19
+#	2) In the guest, unmount the disk.
20
+#
21
+# The above steps are skippable if the guest didn't mount the disk, or
22
+# if the guest read-only-mounted the disk.
23
+#
24
+# Again, be careful not to detach the wrong disk.
25
+
26
+
27
+VM_Num=1
28
+
29
+Port_Num=4
30
+
31
+
32
+readonly Script_Title="Detach VDI from VM$VM_Num Port $Port_Num"
33
+
34
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
35
+	readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
36
+
37
+
38
+VM_Name=$(platz "APSK VirtualBox Guest Setup - VM$VM_Num")
39
+
40
+
41
+VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
42
+--medium none \
43
+--port "$Port_Num"
44
+
... ...
@@ -41,6 +41,8 @@ readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
41 41
 
42 42
 VM_Name=$(platz "APSK VirtualBox Guest Setup - VM$VM_Num")
43 43
 
44
+echo "VM Name: $VM_Name"
45
+
44 46
 
45 47
 VBoxManage storageattach "$VM_Name" --storagectl "SATA_Controller" --type hdd \
46 48
 --medium none \
... ...
@@ -9,5 +9,7 @@ rsync --archive --verbose --update --recursive --itemize-changes \
9 9
 --exclude "0000-Config/*" \
10 10
 --exclude "*/Private/*" \
11 11
 --exclude "*/Private" \
12
+--exclude "Private/" \
13
+--exclude "Private/*" \
12 14
 "$from_path_for_rsync" \
13 15
 "$to_path_for_rsync" \
14 16
new file mode 100755
... ...
@@ -0,0 +1,22 @@
1
+#!/bin/bash
2
+
3
+readonly Script_Title="Unmount Virtual Optical Discs 0, 2, and 3"
4
+
5
+readonly Fillepath____This_Script=$(realpath "${BASH_SOURCE[0]}")
6
+readonly Follpath____This_Script=$(dirname "$Fillepath____This_Script" )
7
+
8
+readonly Follpath____Package_Libraries=$(readlink -m "$Follpath____This_Script/../Package Libraries")
9
+
10
+
11
+cd "$Follpath____Package_Libraries"
12
+
13
+source "Console and Dialog Box Messaging"
14
+source "Requiring"
15
+
16
+Require_Package_Library "Progress Bar Dialog" 1
17
+
18
+Progress_Bar_Dialog "Unmounting Virtual Optical Discs 0, 2, and 3" "Please wait..." 2 .3
19
+
20
+umount /dev/sr0
21
+umount /dev/sr2
22
+umount /dev/sr3