X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=postinst-setup-fedora;h=5e6a0be5f3d7c7fc1fb63d78f24f728f78b587aa;hp=ceb2cdf50cccab0ea27621ab409e02828984993e;hb=198a48894a6bb63c4823d446bdeb97cfd4c1ea54;hpb=be042a6dddd56493b53747c7ba89774cbe6a6537 diff --git a/postinst-setup-fedora b/postinst-setup-fedora index ceb2cdf..5e6a0be 100755 --- a/postinst-setup-fedora +++ b/postinst-setup-fedora @@ -14,34 +14,47 @@ dnf install -y iwl6000g2a-firmware NetworkManager-wifi \ pavucontrol pulseaudio-utils alsa-plugins-pulseaudio \ gstreamer1-plugin-mpg123 gstreamer1-plugins-good \ qemu-kvm qemu-img openvpn mutt weechat pidgin-otr \ + simple-scan sane-backends sane-backends-drivers-scanners \ pandoc texlive-beamer texlive-latex-bin texlive-collection-fontsrecommended \ - texlive-hyphen-german texlive-hyphen-english \ + texlive-hyphen-german texlive-hyphen-english texlive-fancyhdr texlive-dinbrief \ + texlive-german \ gnome-terminal firefox network-manager-applet evince shotwell rhythmbox \ offlineimap gnome-keyring pinentry-gnome3 \ postfix duplicity systemd-container gnome-disk-utility powertop \ git gtimelog libappindicator-gtk3 \ schroot mock \ -# TODO: restore /etc git +# codecs +dnf install -y http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm +dnf install -y gstreamer1-{libav,plugins-{ugly,bad-free}} --setopt=strict=0 + +# restore /etc git branch +if [ ! -d /etc/.git ]; then + [ -e /backup-etc ] || git clone git+ssh://martin@piware.de/home/martin/backup/`hostname`-etc-fedora/ /backup-etc + cp -av /backup-etc/* /etc/ + cp -av /backup-etc/.git/ /etc/ + rm -rf /backup-etc +fi + # other setup -grep -q /ubuntu /etc/fstab || cat << EOF >> /etc/fstab +grep -q lib/mock /etc/fstab || cat << EOF >> /etc/fstab tmpfs /var/tmp tmpfs defaults 0 0 tmpfs /var/lib/mock tmpfs defaults 0 0 -/proc /ubuntu/proc none bind 0 0 -/sys /ubuntu/sys none bind 0 0 -/dev /ubuntu/dev none rbind 0 0 -/home /ubuntu/home none rbind 0 0 -/srv /ubuntu/srv none bind 0 0 -/tmp /ubuntu/tmp none bind 0 0 +#/proc /ubuntu/proc none bind 0 0 +#/sys /ubuntu/sys none bind 0 0 +#/dev /ubuntu/dev none rbind 0 0 +#/home /ubuntu/home none rbind 0 0 +#/srv /ubuntu/srv none bind 0 0 +#/tmp /ubuntu/tmp none bind 0 0 EOF -systemctl enable ubuntu-apt-cacher-ng - # have schroot use tmpfs -rmdir /var/lib/schroot/unpack -ln -s /tmp /var/lib/schroot/unpack +if [ ! -L /var/lib/schroot/unpack ]; then + rmdir /var/lib/schroot/unpack + ln -s /tmp /var/lib/schroot/unpack +fi # root's ssh stuff if [ ! -d /root/.ssh ] && [ -d /home/martin/.ssh ]; then @@ -59,6 +72,9 @@ systemctl set-default graphical.target systemctl enable --now postfix +# Red Hat VPN certs and connections +rpm -i ~martin/Dokumente/Arbeit/RedHat/redhat-internal*.rpm + # create user groupadd --gid 1000 martin useradd --comment "Martin Pitt" --uid 1000 --gid 1000 --groups wheel,ecryptfs,mock martin