Skip to content

Commit 301472f

Browse files
committed
Update how we download background images.
1 parent 70684cc commit 301472f

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
#!/bin/bash
2+
#
3+
# KoC/Mwebaza Raspberry Pi Desktop Customization
4+
#
5+
#
6+
7+
# #########################
8+
# Install svn; needed
9+
# to clone subfolders
10+
# in github.com
11+
# #########################
12+
if [ -f /usr/bin/svn ] ; then
13+
echo "svn is already installed."
14+
else
15+
echo "Installing subversion ..."
16+
sudo apt-get install -y subversion
17+
fi
18+
19+
# #########################
20+
# Bash aliases
21+
# #########################
22+
echo "Adding .bash_aliases ..."
23+
(
24+
cat << EOF
25+
alias ll='ls -l'
26+
EOF
27+
) > $HOME/.bash_aliases
28+
chmod u+x $HOME/.bash_aliases
29+
source $HOME/.bash_aliases
30+
31+
# ####################################
32+
# KoC/Mwebaza Backgrounds
33+
# ####################################
34+
echo "Downloading KoC/Mwebaza background images ..."
35+
TARGETDIR="$HOME/Backgrounds/Mwebaza/"
36+
URL="https://raw.githubusercontent.com/kidsoncomputers/documentation/master/uganda/2024/mwebaza/backgrounds/kph-bird-mwebaza-koc.png"
37+
mkdir -p $TARGETDIR
38+
cd $TARGETDIR
39+
curl --remote-name "$URL"
40+
cd $HOME
41+
42+
# #########################
43+
# Uganda Desktop Background
44+
# images
45+
# #########################
46+
echo "Downloading Uganda background images licensed under Creative Commons Attribution-Share Alike 4.0 International license ..."
47+
TARGETDIR="$HOME/Backgrounds/Uganda/"
48+
mkdir -p $TARGETDIR
49+
cd $TARGETDIR
50+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/e/ee/Banded_groundling_%28Brachythemis_leucosticta%29_young_male.jpg
51+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/7/71/Black-headed_weaver_%28Ploceus_cucullatus_bohndorffi%29_male_nest_building.jpg
52+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/3/37/Common_joker_%28Byblia_ilithyia%29_male.jpg
53+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/7/76/Kampala_Kasubi_Tombs.jpg
54+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/e/e7/Long_skimmer_%28Orthetrum_trinacria%29_female.jpg
55+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/b/b4/Marabou_stork_%28Leptoptilos_crumenifer%29_head.jpg
56+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/f/fd/Olive_baboon_%28Papio_anubis%29_with_juvenile.jpg
57+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/4/46/Pin-tailed_whydah_%28Vidua_macroura%29_female.jpg
58+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/0/07/Pin-tailed_whydah_%28Vidua_macroura%29_male_non-breeding.jpg
59+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/f/f0/Topi_%28Damaliscus_lunatus_jimela%29_female.jpg
60+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/b/b3/Tree-climbing_lions_%28Panthera_leo%29.jpg
61+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/d/d7/Ugandan_defassa_waterbuck_%28Kobus_ellipsiprymnus_defassa%29_juvenile_male.jpg
62+
curl --remote-name https://upload.wikimedia.org/wikipedia/commons/3/37/Ugandan_kobs_%28Kobus_kob_thomasi%29_female_and_calf.jpg
63+
cat << LICENSE > license.txt
64+
# Images in this folder are licensed under Creative Commons Attribution-Share Alike 4.0 International license.
65+
#
66+
# https://en.wikipedia.org/wiki/en:Creative_Commons
67+
# https://creativecommons.org/licenses/by-sa/4.0/deed.en
68+
#
69+
#
70+
# Sourced from:
71+
#
72+
# https://commons.wikimedia.org/wiki/Category:Valued_images_of_Uganda
73+
#
74+
#
75+
# =========================
76+
#
77+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=56191857
78+
#
79+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=53501375
80+
#
81+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=58356106
82+
#
83+
# By not not phil from SF, CA, US - Kampala Kasubi Tombs, CC BY-SA 2.0, https://commons.wikimedia.org/w/index.php?curid=9762848
84+
#
85+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=56191861
86+
#
87+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54788427
88+
#
89+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54082182
90+
#
91+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54866466
92+
#
93+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54866467
94+
#
95+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54592937
96+
#
97+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54082186
98+
#
99+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54619646
100+
#
101+
# By Charles J Sharp - Own work, from Sharp Photography, sharpphotography, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=54645361
102+
LICENSE
103+
cd $HOME
104+
105+

0 commit comments

Comments
 (0)