mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-24 08:03:08 +00:00
139 lines
3.5 KiB
Plaintext
139 lines
3.5 KiB
Plaintext
# Filename:
|
|
# fedora-livecd-security.ks
|
|
# Description:
|
|
# A fully functional live OS based on Fedora for use in security auditing,
|
|
# forensics research, and penetration testing.
|
|
# Maintainers:
|
|
# Fabian Affolter <fab [AT] fedoraproject <dot> org>
|
|
# Joerg Simon <jsimon [AT] fedoraproject <dot> org>
|
|
# Christoph Wickert <cwickert [AT] fedoraproject <dot> org>
|
|
# Acknowledgements:
|
|
# Fedora LiveCD Xfce Spin team - some work here was and will be inherited,
|
|
# many thanks!
|
|
# Fedora LXDE Spin - Copied over stuff to make LXDE Default
|
|
# Luke Macken and Adam Miller for the original OpenBox Security ks and all
|
|
# the Security Applications!
|
|
# Hiemanshu Sharma <hiemanshu [AT] fedoraproject <dot> org>
|
|
|
|
%include fedora-live-base.ks
|
|
%include fedora-live-minimization.ks
|
|
|
|
%packages
|
|
@xfce-desktop
|
|
@xfce-apps
|
|
#@xfce-extra-plugins
|
|
#@xfce-media
|
|
#@xfce-office
|
|
#@firefox
|
|
|
|
# Security tools (not ready at the moment)
|
|
@security-lab
|
|
security-menus
|
|
|
|
# save some space
|
|
-autofs
|
|
-acpid
|
|
-gimp-help
|
|
-desktop-backgrounds-basic
|
|
-realmd # only seems to be used in GNOME
|
|
-PackageKit* # we switched to yumex, so we don't need this
|
|
-aspell-* # dictionaries are big
|
|
-man-pages-*
|
|
|
|
# drop some system-config things
|
|
-system-config-boot
|
|
#-system-config-network
|
|
-system-config-rootpassword
|
|
#-system-config-services
|
|
-policycoreutils-gui
|
|
|
|
# exclude some packages to save some space
|
|
# use './fsl-maintenance.py -l' in your security spin git folder to build
|
|
-ArpON
|
|
-bonesi
|
|
-cmospwd
|
|
-dnstop
|
|
-hfsutils
|
|
-honeyd
|
|
-kismon
|
|
-netsed
|
|
-onesixtyone
|
|
-pdfcrack
|
|
-picviz-gui
|
|
-prelude-lml
|
|
-prelude-manager
|
|
-prewikka
|
|
-proxychains
|
|
-pyrit
|
|
-raddump
|
|
-safecopy
|
|
-scalpel
|
|
-sslstrip
|
|
-tcpreen
|
|
-tcpreplay
|
|
-tripwire
|
|
-wipe
|
|
|
|
%end
|
|
|
|
%post
|
|
# xfce configuration
|
|
|
|
# This is a huge file and things work ok without it
|
|
rm -f /usr/share/icons/HighContrast/icon-theme.cache
|
|
|
|
# create /etc/sysconfig/desktop (needed for installation)
|
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
PREFERRED=/usr/bin/startxfce4
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
|
EOF
|
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
|
|
|
mkdir -p /home/liveuser/.config/xfce4
|
|
|
|
cat > /home/liveuser/.config/xfce4/helpers.rc << FOE
|
|
MailReader=sylpheed-claws
|
|
FileManager=Thunar
|
|
WebBrowser=midori
|
|
FOE
|
|
|
|
# disable screensaver locking (#674410)
|
|
cat >> /home/liveuser/.xscreensaver << FOE
|
|
mode: off
|
|
lock: False
|
|
dpmsEnabled: False
|
|
FOE
|
|
|
|
# deactivate xfconf-migration (#683161)
|
|
rm -f /etc/xdg/autostart/xfconf-migration-4.6.desktop || :
|
|
|
|
# deactivate xfce4-panel first-run dialog (#693569)
|
|
mkdir -p /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml
|
|
cp /etc/xdg/xfce4/panel/default.xml /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
|
|
|
|
# set up lightdm autologin
|
|
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
|
|
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
|
|
#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
|
|
|
|
# set Xfce as default session, otherwise login will fail
|
|
sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf
|
|
|
|
# Show harddisk install on the desktop
|
|
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
|
|
mkdir /home/liveuser/Desktop
|
|
cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
|
|
|
|
# and mark it as executable (new Xfce security feature)
|
|
chmod +x /home/liveuser/Desktop/liveinst.desktop
|
|
|
|
# this goes at the end after all other changes.
|
|
chown -R liveuser:liveuser /home/liveuser
|
|
restorecon -R /home/liveuser
|
|
|
|
EOF
|
|
|
|
%end
|