4 # remove stuff that we do not need
5 dnf remove -y mdadm mlocate nano rsyslog sssd telnet trousers rxvt-unicode abrt plymouth linux-atm-libs quota realmd selinux-policy || true
7 # install stuff that we do want
8 dnf install -y iwl6000g2a-firmware NetworkManager-wifi \
9 sudo ecryptfs-utils vim-enhanced iwl6000g2a-firmware \
10 xorg-x11-server-Xorg xorg-x11-drv-libinput xorg-x11-drv-intel \
11 dejavu-sans-fonts dejavu-serif-fonts dejavu-sans-mono-fonts \
12 xorg-x11-server-utils xorg-x11-utils xbacklight \
13 i3 i3lock lxdm wmctrl dunst pcmanfm gvfs-mtp \
14 pavucontrol pulseaudio-utils alsa-plugins-pulseaudio \
15 gstreamer1-plugin-mpg123 gstreamer1-plugins-good \
16 qemu-kvm qemu-img openvpn mutt weechat pidgin-otr \
17 simple-scan sane-backends sane-backends-drivers-scanners \
18 pandoc texlive-beamer texlive-latex-bin texlive-collection-fontsrecommended \
19 texlive-hyphen-german texlive-hyphen-english texlive-fancyhdr texlive-dinbrief \
21 gnome-terminal firefox network-manager-applet evince shotwell rhythmbox \
22 offlineimap gnome-keyring pinentry-gnome3 \
23 postfix duplicity systemd-container gnome-disk-utility powertop \
24 git gtimelog libappindicator-gtk3 \
28 dnf install -y http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
29 dnf install -y gstreamer1-{libav,plugins-{ugly,bad-free}} --setopt=strict=0
31 # TODO: restore /etc git
34 grep -q /ubuntu /etc/fstab || cat << EOF >> /etc/fstab
36 tmpfs /var/tmp tmpfs defaults 0 0
37 tmpfs /var/lib/mock tmpfs defaults 0 0
38 /proc /ubuntu/proc none bind 0 0
39 /sys /ubuntu/sys none bind 0 0
40 /dev /ubuntu/dev none rbind 0 0
41 /home /ubuntu/home none rbind 0 0
42 /srv /ubuntu/srv none bind 0 0
43 /tmp /ubuntu/tmp none bind 0 0
46 systemctl enable ubuntu-apt-cacher-ng
48 # have schroot use tmpfs
49 rmdir /var/lib/schroot/unpack
50 ln -s /tmp /var/lib/schroot/unpack
53 if [ ! -d /root/.ssh ] && [ -d /home/martin/.ssh ]; then
56 cp /home/martin/.ssh/id_rsa* /home/martin/.ssh/known_hosts /home/martin/.ssh/config /root/.ssh/
59 # disable SELinux to unbreak ecryptfs
60 sed -i '/^SELINUX=/ s/=.*$/=disabled/' /etc/selinux/config
63 rm -f /etc/systemd/system/default.target
64 systemctl set-default graphical.target
66 systemctl enable --now postfix
68 # Red Hat VPN certs and connections
69 rpm -i ~martin/Dokumente/Arbeit/RedHat/redhat-internal*.rpm
72 groupadd --gid 1000 martin
73 useradd --comment "Martin Pitt" --uid 1000 --gid 1000 --groups wheel,ecryptfs,mock martin
77 crontab -u martin - <<EOF
78 # m h dom mon dow command
79 05 * * * * \$HOME/bin/backup >/dev/null