-
Notifications
You must be signed in to change notification settings - Fork 0
/
virt-builder-commands
44 lines (30 loc) · 2.14 KB
/
virt-builder-commands
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
root-password password:root
hostname ledgersmb-appliance.local
run-command fstrim -a -v
run-command grub-install /dev/sda
#run-command grub-mkdevicemap
#run-command grub-probe
run-command update-grub
#run-command DEBIAN_FRONTEND=noninteractive dpkg-reconfigure grub-pc
copy-in ./files/00recommended:/etc/apt/apt.conf.d/
run-command apt-get -y --allow-releaseinfo-change update
run-command DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -q -y -o Dpkg::Options::=--force-confnew
install wget,ca-certificates,gnupg,libclass-c3-xs-perl,texlive-plain-generic,texlive-latex-recommended,texlive-fonts-recommended,texlive-xetex,fonts-liberation,lsb-release
copy-in ./files/postgresql.list:/etc/apt/sources.list.d/
copy-in ./files/postgresql-key.asc:/etc/apt/trusted.gpg.d/
run-command apt-key add /etc/apt/trusted.gpg.d/postgresql-key.asc
update
install postgresql-14
run-command wget --quiet -O /tmp/ledgersmb.tar.gz https://download.ledgersmb.org/f/Releases/1.9.15/ledgersmb-1.9.15.tar.gz
run-command tar -xzf /tmp/ledgersmb.tar.gz --directory /srv
install git,cpanminus,make,gcc,libperl-dev,dh-make-perl,libmodule-cpanfile-perl,apt-file
run-command apt-file update ; set -x ; cd /srv/ledgersmb ; ( for lib in `cpanfile-dump --with-all-features --recommends --no-configure --no-build --no-test` ; do if dh-make-perl locate "$lib" 2>/dev/null ; then : else echo no : $lib ; fi ; done ) | grep -v dh-make-perl | grep -v 'not found' | grep -vi 'is in Perl ' | cut -d' ' -f4 | sort | uniq | tee /srv/ledgersmb/derived-deps
run-command DEBIAN_FRONTEND=noninteractive apt-get install -q -y $(cat /srv/ledgersmb/derived-deps)
run-command cpanm --notest --with-feature=starman --with-feature=latex-pdf-ps --with-feature=openoffice --installdeps /srv/ledgersmb
# run-command DEBIAN_FRONTEND=noninteractive apt-file purge
uninstall git,cpanminus,make,gcc,libperl-dev,dh-make-perl,libmodule-cpanfile-perl,apt-file
run-command DEBIAN_FRONTEND=noninteractive apt-get autoremove -y -q
run-command DEBIAN_FRONTEND=noninteractive apt-get autoclean -y -q
run-command rm -f /tmp/ledgersmb.tar.gz
run-command rm -rf ~/.cpanm/ /var/lib/apt/lists/* /usr/share/man/* /tmp/*
run-command fstrim -a -v