Use um script de shell (bash):
#!/bin/bash
#above line ensures it runs with bash because of the '#!'
sudo apt-get update
sudo apt-get install -y numix-icon-theme package2 package3 package4
sudo apt-get install -y package5 package6 package7 etc
gsettings set org.gnome.desktop.interface gtk-theme "Numix"
Como alternativa, se você souber que suas preferências serão alteradas, poderá escrever um script que leia um arquivo de entrada:
#newserver.in
install,numix-icon-theme,package2,package3
install,package4
custom,gsettings,"set org.gnome.desktop.interface gtk-theme \"Numix\""
Lendo um arquivo de entrada
#!/bin/bash
infile=foobar.in
thisserver=""
cat $infile | while read line
do
case $line in
"#"*) [ ];; #matches commented lines
"") [ ] ;; #matches empty lines
*) #matches the rest
#echo $line
while IFS=, read val1 val2 val3 val4 val5 val6
do
#echo "val1=$val1 val2=$val2 val3=$val3 val4=$val4"
#echo "$thisserver $line"
if [[ "$thisserver" == author* ]] && [ "$val1" != "SERVER" ];
then
echo "$val1 $val2 wrote during the $val3"
elif [[ "$thisserver" == movies* ]] && [ "$val1" != "SERVER" ];
then
echo "$val1 ($val2) rates $val3 on imdb.com"
fi
if [ "$val1" = "SERVER" ];
then
echo "$val2"
thisserver=$val2
fi
done <<< $line
;;
esac
done
foobar.in
#foobar.in
# example comment
SERVER,authors.example.com,
alexandre,dumas,1700s
robert,heinlein,1900s,science fiction, nothing to see here, extra properties
timothy,zahn,1900s,
mark,twain,1800s,
SERVER,movies.example.com,
The Avengers,2012,8,
Star Wars,1997,9,
Ratatouille,2007,8,