# Desktop with customizationst to fit in a CD sized image (package removals, etc.) # Maintained by the Fusion Linux # http://www.fusionlinux.org # mailto:fusionlinux@groups.google.com # timezone Europe/Zagreb part / --size 6000 --fstype ext4 # releasever=17 # basearch=x86_64 # basearch=i386 #repo --name=fusion --baseurl=http://iso.linux.hr/fusion-linux/fusion-repo/fusion-15/i386/ #repo --name=rpmfusion-non-free --baseurl=http://download1.rpmfusion.org/nonfree/fedora/releases/17/Everything/i386/os/ # repos that automatically are defined by 17 and $basearch repo --name=rpmfusion-non-free --mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-17&arch=$basearch repo --name=rpmfusion-non-free-updates --baseurl=http://download1.rpmfusion.org/nonfree/fedora/updates/17/$basearch repo --name=virtualbox --baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/17/$basearch/ # 32 bit only repo --name=dropbox --baseurl=http://linux.dropbox.com/fedora/17/ repo --name=adobe --baseurl=http://linuxdownload.adobe.com/linux/i386/ repo --name=skype --baseurl=http://download.skype.com/linux/repos/fedora/updates/i586 repo --name=playonlinux --baseurl=http://rpm.playonlinux.com/fedora/yum/base #repo --name=livna --baseurl=http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/repo/16/i386/ %packages # eyecandy #desktop-backgrounds-basic ##faenza-fusion-icon-theme # Fusion Linux icon theme #faenza-icon-theme # tools xterm git #fusion linux repo #mintmenu #dockbarx #python-imaging # python module needed for dockbarx, 0.4 M #autoplus #fusion-linux-14 # package with setting for look & feel of Fusion GNOME desktop #teamviewer6 # best remote desktop for Linux and other platforms, 84 M # desktop apps # geany # advanced IDE and text editor, 2.3 M # pyroom # fullscreen uncluterred text editor for better productivity, 5.5 M gnome-translate # translation tool, 1.2 M #choqok # kde based twitter client, 4.1 M #giver # easy local file sharing, 0.3 M + 43M, but has mono as dependency #arista dependency python-gudev # proprietary bits flash-plugin nautilus-dropbox # skype # removed for distrubution and legal reasons. # picasa # great photo management app, but crashes alot!, 82 M # google-chrome-stable # nonfree packages rpmfusion-nonfree-release gstreamer-plugins-bad-nonfree unrar #VirtualBox-4.1 %end %post --log=/root/ks-post.log # tweak swappiness echo "" >>/etc/sysctl.conf echo "vm.swappiness=10" >>/etc/sysctl.conf echo "vm.vfs_cache_pressure = 50" >>/etc/sysctl.conf # Fusion Linux Rebranding echo "" echo -e "Fusion Linux Rebranding" echo "" echo "Fusion release 17 (Goddess)" > /etc/fedora-release echo "cpe:/o:fusionlinux:fusion:17" > /etc/system-release-cpe echo "Fusion release 17 (Goddess) Kernel \r on an \m (\l)" > /etc/issue echo "Fusion release 17 (Goddess) Kernel \r on an \m (\l)" > /etc/issue.net cat > /etc/os-release << EOF NAME=Fusion VERSION="17 (Goddess)" ID=fusion VERSION_ID=17 PRETTY_NAME="Fusion 17 (Goddess)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fusion:fusion:17" EOF # Solarized theme for gnome-terminal and konsole # set palette gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-terminal/profiles/Default/palette '#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3' # set highlighted color to be different from foreground-color gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-terminal/profiles/Default/bold_color_same_as_fg false # make sure the profile is set to not use theme colors gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-terminal/profiles/Default/background_color '#00002B2B3636' gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-terminal/profiles/Default/foreground_color '#838394949696' gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /apps/gnome-terminal/profiles/Default/bold_color '#9393a1a1a1a1' # clipit config mkdir -p /etc/skel/.config/clipit cat >> /etc/skel/.config/clipit/clipitrc << EOF [rc] use_copy=true use_primary=false synchronize=false automatic_paste=false show_indexes=false save_uris=true use_rmb_menu=false save_history=true history_limit=99 items_menu=30 statics_show=true statics_items=10 hyperlinks_only=false confirm_clear=false single_line=true reverse_history=false item_length=50 ellipsize=2 history_key=H actions_key=A menu_key=P search_key=F offline_key=O offline_mode=false EOF # synapse config mkdir -p /etc/skel/.config/synapse cat >> /etc/skel/.config/synapse/config.json << EOF { "ui" : { "global" : { "ui-type" : "default", "show-indicator" : false } } } EOF # remove this session file from gnome-session package to make cinnamon the default # temporary hack till this file is split up from the package rm -rf /usr/share/xsessions/gnome* # GNOME Tweaks # Gedit with 10 recent files # gsettings set org.gnome.gedit.preferences.ui max-recents '13' # show icons on Desktop # gsettings set org.gnome.desktop.background show-desktop-icons true # set Faience-Azur as default icon theme # gsettings set org.gnome.desktop.interface icon-theme 'Faience-Azur' cat >> /usr/share/glib-2.0/schemas/org.fusion.linux.settings.gschema.override << EOF [org.gnome.desktop.background] picture-uri='file:///usr/share/backgrounds/rei-forever.jpg' show-desktop-icons=true [org.gnome.desktop.interface] icon-theme='Faience-Azur' [org.gnome.gedit.preferences.ui] max-recents=10 [org.gnome.desktop.interface] gtk-theme='Universal' [org.gnome.gedit.preferences.editor] scheme='solarized_dark' [org.gnome.settings-daemon.peripherals.touchpad] tap-to-click=true disable-while-typing=true EOF cat >> /etc/rc.d/init.d/livesys << EOF # Put Install icon on desktop #mkdir -p /etc/skel/Desktop/ #cp /usr/share/applications/anaconda.desktop /etc/skel/Desktop/ cp /usr/share/applications/anaconda.desktop /home/liveuser/Desktop/ cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop/ EOF # tweak bash terminal and add fortune cat >> /etc/skel/.bashrc << EOF PS1='\[\033[01;34m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W]\[\033[00m\]\\$ ' fortune EOF # create autostart directory mkdir -p /etc/skel/.config/autostart # enable clipit clipboard manager autostart # cp /usr/share/applications/clipit.desktop /etc/skel/.config/autostart/ # add synapse to autostart directory cp /usr/share/applications/synapse.desktop /etc/skel/.config/autostart/ # tweak swappiness echo "" >>/etc/sysctl.conf echo "vm.swappiness=10" >>/etc/sysctl.conf echo "vm.vfs_cache_pressure = 50" >>/etc/sysctl.conf # delete gnome menu items rm /usr/share/applications/kde4/ark.desktop rm /usr/share/applications/kde4/kcalc.desktop rm /usr/share/applications/kde4/KCharSelect.desktop rm /usr/share/applications/kde4/KFloppy.desktop rm /usr/share/applications/kde4/kgpg.desktop rm /usr/share/applications/kde4/ktimer.desktop rm /usr/share/applications/kde4/kwrite.desktop rm /usr/share/applications/kde4/nepomukcontroller.desktop rm /usr/share/applications/kde4/sweeper.desktop rm /usr/share/applications/livna-alc.desktop rm /usr/share/applications/fedora-ggz-gtk.desktop rm /usr/share/applications/livna-wxcas.desktop rm /usr/share/applications/kde4/dolphin.desktop rm /usr/share/applications/kde4/kdf.desktop rm /usr/share/applications/kde4/kwalletmanager.desktop rm /usr/share/applications/kde4/kwikdisk.desktop # add .repo files for additional repositories # Fusion Linux repository #cat >> /etc/yum.repos.d/fusion.repo << EOF # Place this file in your /etc/yum.repos.d/ directory #[fusion] #name=Few packages that are missing for Fusion Linux (Fedora Remix) #baseurl=http://iso.linux.hr/fusion-linux/fusion-repo/fusion-16/$basearch/ #enabled=1 #skip_if_unavailable=1 #gpgcheck=0 #[fusion-source] #name=Few packages that are missing for Fusion Linux (Fedora Remix) - Source #baseurl=http://iso.linux.hr/fusion-linux/fusion-repo/fusion-16/SRPMS #enabled=0 #gpgcheck=0 #skip_if_unavailable=1 #EOF # Dropbox repository rm /etc/yum.repos.d/dropbox.repo cat >> /etc/yum.repos.d/dropbox.repo << EOF [Dropbox] name=Dropbox Repository baseurl=http://linux.dropbox.com/fedora/17/ #baseurl=http://linux.dropbox.com/fedora/16/ gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc skip_if_unavailable=1 EOF # Playonlinux repository cat >> /etc/yum.repos.d/playonlinux.repo << EOF [playonlinux] name=PlayOnLinux Official repo baseurl=http://rpm.playonlinux.com/fedora/yum/base enable=1 gpgcheck=0 gpgkey=http://mulx.playonlinux.com/rpm/rpm.gpg skip_if_unavailable=1 EOF # install Google repository (Picasa, Google Chrome Browser ...) wget https://dl-ssl.google.com/linux/linux_signing_key.pub rpm --import linux_signing_key.pub echo '[google] name=Google - i386 baseurl=http://dl.google.com/linux/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub skip_if_unavailable=1' > /etc/yum.repos.d/google.repo # Google Chrome repo echo '[google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 skip_if_unavailable=1' > /etc/yum.repos.d/google-chrome.repo # Google Earth repo echo '[google-earth] name=google-earth baseurl=http://dl.google.com/linux/earth/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub skip_if_unavailable=1' > /etc/yum.repos.d/google-earth.repo # Add Skype repository gpg --keyserver pgp.mit.edu --recv-keys 0xD66B746E gpg -a -o /etc/pki/rpm-gpg/RPM-GPG-KEY-skype --export 0xD66B746E cat >> /etc/yum.repos.d/skype.repo << EOF [skype] name=Skype Repository baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/ #gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-skype enabled=1 gpgcheck=1 skip_if_unavailable=1 EOF # Add Adobe Flash plugin repo rpm --import https://dl.dropbox.com/u/184632/RPM-GPG-KEY-adobe-linux echo '[adobe-linux] name=Adobe Systems Incorporated baseurl=http://linuxdownload.adobe.com/linux/$basearch enabled=1 gpgcheck=1 skip_if_unavailable=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux' > /etc/yum.repos.d/adobe-linux.repo # Add Parsidora repository #cat >> /etc/yum.repos.d/parsidora.repo << EOF #[parsidora] #name=Parsidora 16 – $basearch #baseurl=http://parsidora.sourceforge.net/releases/16/repos/parsidora/$basearch #skip_if_unavailable=1 #gpgcheck=0 #EOF # install VirtualBox Guest Additions #mkdir /tmp/mnt #mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /tmp/mnt/ #/tmp/mnt/VBoxLinuxAdditions.run # Enable GIMP single window mode mkdir -p /etc/skel/.gimp-2.7/ cat >> /etc/skel/.gimp-2.7/sessionrc << EOF # GIMP sessionrc # # This file takes session-specific info (that is info, you want to keep # between two GIMP sessions). You are not supposed to edit it manually, but # of course you can do. The sessionrc will be entirely rewritten every time # you quit GIMP. If this file isn't found, defaults are used. (session-info "toplevel" (factory-entry "gimp-empty-image-window") (position 410 370) (size 620 200)) (session-info "toplevel" (factory-entry "gimp-single-image-window") (position 159 104) (size 986 727) (open-on-exit) (aux-info (left-docks-width "118") (right-docks-position "656")) (gimp-toolbox (side left) (book (current-page 0) (dockable "gimp-tool-options" (tab-style automatic)))) (gimp-dock (side right) (book (current-page 0) (dockable "gimp-layer-list" (tab-style automatic) (preview-size 32)) (dockable "gimp-channel-list" (tab-style automatic) (preview-size 32)) (dockable "gimp-vectors-list" (tab-style automatic) (preview-size 32)) (dockable "gimp-undo-history" (tab-style automatic))) (book (position 356) (current-page 0) (dockable "gimp-brush-grid" (tab-style automatic)) (dockable "gimp-pattern-grid" (tab-style automatic)) (dockable "gimp-gradient-list" (tab-style automatic))))) (hide-docks no) (single-window-mode yes) (last-tip-shown 0) # end of sessionrc EOF %end %post --nochroot --log=/mnt/sysimage/root/ks-post.log # # http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-postinstallconfig.html # --nochroot Allows you to specify commands that you would like to run outside of the chroot environment. # # Define variables where config files are located ($LIVE_ROOT) # and which directory is used for building iso ($INSTALL_ROOT) LIVE_ROOT="/home/fusion-linux" cd /home/fusion-linux/temp/imgcreate-* cd install_root INSTALL_ROOT=$(pwd) echo -e "\nBegin --nochroot" echo -e "\nInstall root directory - $INSTALL_ROOT" # Download Faience GNOME 3 icon theme echo -e "\nInstalling Faience icons" cd "$LIVE_ROOT" if [ ! -d faience_icon_theme ] ; then mkdir -p faience_icon_theme fi cd faience_icon_theme if [ ! -f faience-icon-theme_0.5.zip ] ; then wget http://dl.dropbox.com/u/9966975/faience-icon-theme_0.5.zip else echo -e "\nFaience icons already downloaded.\n" fi if [ -f faience-icon-theme_0.5.zip ] ; then unzip -o faience-icon-theme_0.5.zip tar xf Faience.tar.gz tar xf Faience-Azur.tar.gz tar xf Faience-Ocre.tar.gz tar xf Faience-Claire.tar.gz mkdir -p "$INSTALL_ROOT/etc/skel/.icons/" echo -e "\nCopy Faience icons to skel directory." mv Faience/ "$INSTALL_ROOT/etc/skel/.icons/" mv Faience-Azur/ "$INSTALL_ROOT/etc/skel/.icons/" mv Faience-Ocre/ "$INSTALL_ROOT/etc/skel/.icons/" mv Faience-Claire/ "$INSTALL_ROOT/etc/skel/.icons/" cd "$LIVE_ROOT" echo -e "\nFaience icons install finished." else echo -e "\nFaience icons download failed.\n" fi # Universal GNOME 3 Theme echo -e "\nBegining of installation - Universal GNOME 3 Theme" cd "$LIVE_ROOT" if [ ! -f universal_by_nale12-d4hne5v.zip ] ; then echo -e "\nDownloading Universal GNOME 3 theme" curl -L -O http://www.deviantart.com/download/271509619/universal_by_nale12-d4hne5v.zip else echo -e "\nUniversal theme already downloaded" fi unzip universal_by_nale12* mv Universal "$INSTALL_ROOT/usr/share/themes/" mv Universal.emerald "$INSTALL_ROOT/usr/share/themes/" if [ -d "$INSTALL_ROOT/usr/share/theme/Universal" ] ; then echo -e "Universal theme installed successfully\n" else echo -e "Universal theme installation failed\n" fi # Wallpaper echo -e "\nBegin wallpaper installation" if [ ! -f rei-forever.jpg ] ; then curl https://raw.github.com/valentt/Fusion-Linux-Extras/master/Fusion%20Linux%20Artwork/wallpaper/rei-forever.jpg -O else cp rei-forever.jpg "$INSTALL_ROOT/usr/share/backgrounds/" fi # Solarized theme for gnome-terminal and konsole echo -e "\nSolarized gnome-terminal theme" mkdir -p "$INSTALL_ROOT/etc/skel/.solarized/" cd "$INSTALL_ROOT/etc/skel/.solarized/" wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-light wget https://github.com/mukashi/solarized/raw/master/gedit-colors-solarized/solarized_dark.xml wget https://github.com/mukashi/solarized/raw/master/gedit-colors-solarized/solarized_light.xml mkdir -p "$INSTALL_ROOT/etc/skel/.config/gedit/styles/" cp solarized_light.xml "$INSTALL_ROOT/etc/skel/.config/gedit/styles/" cp solarized_dark.xml "$INSTALL_ROOT/etc/skel/.config/gedit/styles/" cp dircolors.ansi-dark "$INSTALL_ROOT/etc/skel/.dircolors" eval `dircolors "$INSTALL_ROOT/etc/skel/.dircolors"` git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git cd gnome-terminal-colors-solarized # ./set_dark.sh cd "$LIVE_ROOT" # Solarized Konsole mkdir -p "$INSTALL_ROOT/etc/skel/.kde/share/apps/konsole/" curl https://raw.github.com/phiggins/konsole-colors-solarized/master/Solarized%20Dark.colorscheme -o "$INSTALL_ROOT/etc/skel/.kde/share/apps/konsole/SolarizedDark.colorscheme" cat <