2013-01-25 03:51:40 +00:00
|
|
|
# fedora-livecd-soas.ks
|
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# - A Sugar environment that you can carry in your pocket
|
|
|
|
#
|
|
|
|
# Maintainers:
|
|
|
|
# - Peter Robinson <pbrobinson AT gmail DOT com>
|
2017-01-18 11:52:53 +00:00
|
|
|
|
|
|
|
firewall --enabled --service=mdns,presence
|
2013-01-25 03:51:40 +00:00
|
|
|
|
|
|
|
%packages
|
2020-02-19 00:01:04 +00:00
|
|
|
|
|
|
|
# == Core Sugar Platform ==
|
2020-03-22 19:54:01 +00:00
|
|
|
fedora-release-soas
|
2020-02-19 00:01:04 +00:00
|
|
|
@sugar-desktop
|
|
|
|
|
|
|
|
# explicitly remove a bunch of extra stuff
|
|
|
|
-openbox
|
2013-01-25 03:51:40 +00:00
|
|
|
-@fonts
|
|
|
|
-@dial-up
|
|
|
|
-@multimedia
|
|
|
|
-@printing
|
|
|
|
-foomatic
|
|
|
|
-@gnome-desktop
|
|
|
|
-yp-tools
|
|
|
|
-ypbind
|
|
|
|
-rdate
|
|
|
|
-rdist
|
|
|
|
-icedtea-web
|
|
|
|
-firefox
|
|
|
|
-glx-utils
|
|
|
|
-nmap-ncat
|
|
|
|
-PackageKit
|
|
|
|
-eekboard-libs
|
2013-06-24 23:04:31 +00:00
|
|
|
-open-vm-tools*
|
2014-09-21 22:09:02 +00:00
|
|
|
-gfs2-utils
|
|
|
|
-abrt-cli
|
|
|
|
-ibus*
|
|
|
|
-hyperv-daemons
|
2020-02-19 00:01:04 +00:00
|
|
|
-sane-backends
|
|
|
|
-sane-backends-drivers-scanners
|
2020-09-13 16:54:50 +00:00
|
|
|
-chkconfig
|
|
|
|
-dhcp-client
|
|
|
|
-gcc-gdb-plugin
|
|
|
|
-gcc
|
2013-01-25 03:51:40 +00:00
|
|
|
|
2014-12-02 00:25:46 +00:00
|
|
|
# Add some extra fonts
|
|
|
|
dejavu-sans-fonts
|
|
|
|
dejavu-sans-mono-fonts
|
|
|
|
madan-fonts
|
|
|
|
aajohan-comfortaa-fonts
|
|
|
|
sil-abyssinica-fonts
|
|
|
|
vlgothic-fonts
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
# Write breaks unless we do this (we don't need it anyway)
|
|
|
|
@input-methods
|
|
|
|
|
2014-06-27 16:09:51 +00:00
|
|
|
# Needed for wifi, bluetooth and WWAN connection support
|
|
|
|
@networkmanager-submodules
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
# Usefulness for DSL connections as per:
|
|
|
|
# http://bugs.sugarlabs.org/ticket/1951
|
|
|
|
rp-pppoe
|
|
|
|
|
2017-10-21 19:14:52 +00:00
|
|
|
# Useful for SoaS duplication from:
|
|
|
|
# http://bugs.sugarlabs.org/ticket/74
|
|
|
|
livecd-tools
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
# Get the Sugar boot screen
|
|
|
|
-plymouth-system-theme
|
|
|
|
-plymouth-theme-charge
|
|
|
|
|
2017-01-21 11:11:44 +00:00
|
|
|
%end
|
|
|
|
|
2017-01-18 11:52:53 +00:00
|
|
|
%post
|
|
|
|
|
2019-06-09 11:37:37 +00:00
|
|
|
# Get proper release naming in the control panel
|
|
|
|
cat >> /boot/olpc_build << EOF
|
|
|
|
Sugar on a Stick
|
|
|
|
EOF
|
|
|
|
cat /etc/fedora-release >> /boot/olpc_build
|
|
|
|
|
2017-01-18 11:52:53 +00:00
|
|
|
# Rebuild initrd for Sugar boot screen
|
|
|
|
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
|
|
|
/usr/sbin/plymouth-set-default-theme sugar
|
2019-06-09 11:37:37 +00:00
|
|
|
dracut -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
2017-01-18 11:52:53 +00:00
|
|
|
|
|
|
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
|
|
|
rm -f /var/lib/rpm/__db*
|
|
|
|
|
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
|
|
PREFERRED=/usr/bin/sugar
|
|
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Don't use the default system user (in SoaS liveuser) as nick name
|
|
|
|
# Disable the logout menu item in Sugar
|
|
|
|
# Enable Sugar power management
|
|
|
|
cat >/usr/share/glib-2.0/schemas/sugar.soas.gschema.override <<EOF
|
|
|
|
[org.sugarlabs.user]
|
|
|
|
default-nick='disabled'
|
|
|
|
|
|
|
|
[org.sugarlabs]
|
|
|
|
show-logout=false
|
|
|
|
|
|
|
|
[org.sugarlabs.power]
|
|
|
|
automatic=true
|
|
|
|
EOF
|
2018-09-14 01:52:12 +00:00
|
|
|
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
|
|
|
2013-01-25 03:51:40 +00:00
|
|
|
%end
|