From 371754cfd562e3287274cb7fc34b7a9fefb331da Mon Sep 17 00:00:00 2001 From: nasirhm Date: Jun 16 2020 23:59:58 +0000 Subject: Add README.adoc, LXDE-i3 ad XFCE-13 for Fedora 32. --- diff --git a/Kickstarts/README.adoc b/Kickstarts/README.adoc new file mode 100644 index 0000000..f087871 --- /dev/null +++ b/Kickstarts/README.adoc @@ -0,0 +1,33 @@ += Fedora i3 - Kickstart Files +Maintained by link:https://fedoraproject.org/wiki/SIGs/i3[i3 SiG] + +Fedora i3's Kickstart files are used in composing Fedora i3 Release images. + +*Note:* The i3 kickstart files are currently in development and not yet ready for production/release. + +== Current Workflow: + +For now, we've started with flattening/forking two widely used spins: `xfce` and `lxde` and adding the i3 packages there to ensure stability among packages. +A compose build was made as `F32-20200615` with the help of folks from the Respins SiG. + +The kickstart files that are available are: + +* `flat-i3-lxde.ks` which is flattened from `flat-live-lxde.ks` which we branched for F32 instead of rawhide. +* `flat-i3-xfce.ks` whichi is flattened from `flat-live-xfce.ks` which is also branched for F32. + +Both of them were modified in order to add the link:https://fedoraproject.org/wiki/SIGs/i3/Brainstorm#i3-minimal[i3-minimal] packages along with the packages used by the specific DE. + +== Future Workflow: + +We are working on cleaning the ks files in order to reach a minimal i3 kickstart. +Which can be used to build a compose in which the Window Manager is by default set to i3. + +Or Maybe, Once we understand how things behave behind the curtains, we can create a custom kickstart too. + +== End Goal: + +Our end goal is to be able to create and maintain the kickstart file which can be composed as a Fedora having i3 as it's deault window manager. + +== Want to help + +We would love to have you here, Come chat with us at #fedora-i3 on Freenode. diff --git a/Kickstarts/fedora-live-lxde-not-rawhide.ks b/Kickstarts/fedora-live-lxde-not-rawhide.ks new file mode 100644 index 0000000..25da788 --- /dev/null +++ b/Kickstarts/fedora-live-lxde-not-rawhide.ks @@ -0,0 +1,64 @@ +# fedora-livecd-lxde.ks +# +# Description: +# - Fedora Live Spin with the light-weight LXDE Desktop Environment +# +# Maintainer(s): +# - Christoph Wickert + +%include fedora-live-base-not-rawhide.ks +%include fedora-live-minimization.ks +%include fedora-lxde-common.ks + +%post +# LXDE and LXDM configuration + +# create /etc/sysconfig/desktop (needed for installation) +cat > /etc/sysconfig/desktop <> /etc/rc.d/init.d/livesys << EOF +# disable screensaver locking and make sure gamin gets started +cat > /etc/xdg/lxsession/LXDE/autostart << FOE +/usr/libexec/gam_server +@lxpanel --profile LXDE +@pcmanfm --desktop --profile LXDE +/usr/libexec/notification-daemon +FOE + +# set up preferred apps +cat > /etc/xdg/libfm/pref-apps.conf << FOE +[Preferred Applications] +WebBrowser=firefox.desktop +MailClient=sylpheed.desktop +FOE + +# set up auto-login for liveuser +sed -i 's/# autologin=.*/autologin=liveuser/g' /etc/lxdm/lxdm.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 + +# create default config for clipit, otherwise it displays a dialog on startup +mkdir -p /home/liveuser/.config/clipit +cat > /home/liveuser/.config/clipit/clipitrc << FOE +[rc] +use_copy=true +save_uris=true +save_history=false +statics_show=true +single_line=true +FOE + +# this goes at the end after all other changes. +chown -R liveuser:liveuser /home/liveuser +restorecon -R /home/liveuser + +EOF + +%end + diff --git a/Kickstarts/fedora-live-xfce-not-rawhide.ks b/Kickstarts/fedora-live-xfce-not-rawhide.ks new file mode 100644 index 0000000..98b1f6f --- /dev/null +++ b/Kickstarts/fedora-live-xfce-not-rawhide.ks @@ -0,0 +1,76 @@ +# fedora-livecd-xfce.ks +# +# Description: +# - Fedora Live Spin with the light-weight XFCE Desktop Environment +# +# Maintainer(s): +# - Rahul Sundaram +# - Christoph Wickert +# - Kevin Fenzi +# - Adam Miller + +%include fedora-live-base-not-rawhide.ks +%include fedora-live-minimization.ks +%include fedora-xfce-common.ks + +%post +# xfce configuration + +# create /etc/sysconfig/desktop (needed for installation) + +cat > /etc/sysconfig/desktop <> /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=firefox +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 + +# no updater applet in live environment +rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.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 +