Build Your Own Remix with Fedora Samples

From Sugar Labs
Jump to navigation Jump to search

Desktop with customizations to fit in a CD sized image

  • remixes@lists.fedoraproject.org Re: Copy files from local system into liveCD?
On Thu, Jun 7, 2012 at 3:02 AM, Jacek Furmankiewicz wrote:
Thanks for all your help.
I managed to get it to work with the --nochroot option.
Hope to have some results to show soon.
I am trying to create an XFCE-based remix, but with all the extra goodies like in Fusion/Kororaa, etc.
Cheers
Jacek


> I am trying to copy some default user settings from my local folder to the
> /etc/skel folder on the live CD, e.g.:
>
> %post
>
> # set default user config
> cp -r $PWD/config/.config $INSTALL_ROOT/etc/skel
>
> %end
>
> But it doesn't work...
>
> cp: cannot stat `/home/jacekf/src/remix/config/.config': No such file or
> directory

> Is there some trick for bringing in custom files from your local filesystem
> into the live CD?
> Thank you
> Jacek
It is a bit tricky, you need to do it outside of root environment,
hence do this in "--nochroot" part of kickstart file, but you need to
know which temp directory is used for root.
You can check out my kickstart file for inspiration:
 https://github.com/valentt/Fusion-Linux/blob/master/kickstarts/fusion-17/fusion-live-extras.ks
you should specify which temp folder to use when starting
livecd-creator with --temp= option
Hope this helps.
valent.turkovic


  1. Desktop with customizations to fit in a CD sized image (package removals, etc.)
  2. Maintained by the Fusion Linux
  3. http://www.fusionlinux.org
  4. mailto:fusionlinux@groups.google.com
  1. timezone Europe/Zagreb

part / --size 6000 --fstype ext4

  1. releasever=17
  2. basearch=x86_64
  3. basearch=i386
  1. repo --name=fusion --baseurl=http://iso.linux.hr/fusion-linux/fusion-repo/fusion-15/i386/
  2. repo --name=rpmfusion-non-free --baseurl=http://download1.rpmfusion.org/nonfree/fedora/releases/17/Everything/i386/os/
  1. repos that automatically are defined by 16 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/

  1. 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

  1. repo --name=livna --baseurl=http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/repo/16/i386/


%packages

  1. eyecandy
  2. desktop-backgrounds-basic
    1. faenza-fusion-icon-theme # Fusion Linux icon theme

faenza-icon-theme

  1. tools

xterm git

  1. fusion linux repo
  2. mintmenu
  3. dockbarx
  4. python-imaging # python module needed for dockbarx, 0.4 M
  5. autoplus
  6. fusion-linux-14 # package with setting for look & feel of Fusion GNOME desktop
  7. teamviewer6 # best remote desktop for Linux and other platforms, 84 M
  1. desktop apps
  2. geany # advanced IDE and text editor, 2.3 M
  3. pyroom # fullscreen uncluterred text editor for better productivity, 5.5 M

gnome-translate # translation tool, 1.2 M

  1. choqok # kde based twitter client, 4.1 M
  2. giver # easy local file sharing, 0.3 M + 43M, but has mono as dependency
  1. arista dependency

python-gudev

  1. proprietary bits

flash-plugin nautilus-dropbox

  1. skype # removed for distrubution and legal reasons.
  2. picasa # great photo management app, but crashes alot!, 82 M
  3. google-chrome-stable
  1. nonfree packages

rpmfusion-nonfree-release gstreamer-plugins-bad-nonfree unrar


  1. VirtualBox-4.1


%end


%post --log=/root/ks-post.log

  1. tweak swappiness

echo "" >>/etc/sysctl.conf echo "vm.swappiness=10" >>/etc/sysctl.conf echo "vm.vfs_cache_pressure = 50" >>/etc/sysctl.conf

  1. 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


  1. Solarized theme for gnome-terminal and konsole
  1. 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'

  1. 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

  1. 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'


  1. 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=<Ctrl><Alt>H actions_key=<Ctrl><Alt>A menu_key=<Ctrl><Alt>P search_key=<Ctrl><Alt>F offline_key=<Ctrl><Alt>O offline_mode=false EOF


  1. 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


  1. remove this session file from gnome-session package to make cinnamon the default
  2. temporary hack till this file is split up from the package

rm -rf /usr/share/xsessions/gnome*


  1. GNOME Tweaks
  1. Gedit with 10 recent files
  2. gsettings set org.gnome.gedit.preferences.ui max-recents '13'
  1. show icons on Desktop
  2. gsettings set org.gnome.desktop.background show-desktop-icons true
  1. set Faience-Azur as default icon theme
  2. 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

  1. Put Install icon on desktop
  2. mkdir -p /etc/skel/Desktop/
  3. cp /usr/share/applications/anaconda.desktop /etc/skel/Desktop/

cp /usr/share/applications/anaconda.desktop /home/liveuser/Desktop/ FOE

  1. 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

  1. create autostart directory

mkdir -p /etc/skel/.config/autostart

  1. enable clipit clipboard manager autostart

cp /usr/share/applications/clipit.desktop /etc/skel/.config/autostart/

  1. add synapse to autostart directory

cp /usr/share/applications/synapse.desktop /etc/skel/.config/autostart/

  1. tweak swappiness

echo "" >>/etc/sysctl.conf echo "vm.swappiness=10" >>/etc/sysctl.conf echo "vm.vfs_cache_pressure = 50" >>/etc/sysctl.conf


  1. 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


  1. add .repo files for additional repositories
  1. Fusion Linux repository
  2. cat >> /etc/yum.repos.d/fusion.repo << EOF
  3. Place this file in your /etc/yum.repos.d/ directory
  1. [fusion]
  2. name=Few packages that are missing for Fusion Linux (Fedora Remix)
  3. baseurl=http://iso.linux.hr/fusion-linux/fusion-repo/fusion-16/$basearch/
  4. enabled=1
  5. skip_if_unavailable=1
  6. gpgcheck=0
  1. [fusion-source]
  2. name=Few packages that are missing for Fusion Linux (Fedora Remix) - Source
  3. baseurl=http://iso.linux.hr/fusion-linux/fusion-repo/fusion-16/SRPMS
  4. enabled=0
  5. gpgcheck=0
  6. skip_if_unavailable=1
  7. EOF
  1. 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/

  1. baseurl=http://linux.dropbox.com/fedora/16/

gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc skip_if_unavailable=1 EOF

  1. 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

  1. install Google repository (Picasa, Google Chrome Browser ...)

wget https://dl-ssl.google.com/linux/linux_signing_key.pub rpm --import linux_signing_key.pub cat >> /etc/yum.repos.d/google.repo << EOF [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 EOF

  1. Google Chrome repo

cat >> /etc/yum.repos.d/google-chrome.repo << EOF [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 skip_if_unavailable=1 EOF

  1. Google Earth repo

cat >> /etc/yum.repos.d/google-earth.repo << EOF [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 EOF

  1. 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/

  1. 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

  1. Add Cinnamon repository

cat >> /etc/yum.repos.d/fedora-cinnamon.repo << EOF [fedora-cinnamon] name=Cinnamon provides core user interface functions for the GNOME 3 desktop baseurl=http://repos.fedorapeople.org/repos/leigh123linux/cinnamon/fedora-17/$basearch/ enabled=1 skip_if_unavailable=1 gpgcheck=0

[fedora-cinnamon-source] name=Cinnamon provides core user interface functions for the GNOME 3 desktop - Source baseurl=http://repos.fedorapeople.org/repos/leigh123linux/cinnamon/fedora-17/SRPMS enabled=0 skip_if_unavailable=1 gpgcheck=0 EOF

  1. Add Parsidora repository
  2. cat >> /etc/yum.repos.d/parsidora.repo << EOF
  3. [parsidora]
  4. name=Parsidora 16 – $basearch
  5. baseurl=http://parsidora.sourceforge.net/releases/16/repos/parsidora/$basearch
  6. skip_if_unavailable=1
  7. gpgcheck=0
  8. EOF
  1. install VirtualBox Guest Additions
  2. mkdir /tmp/mnt
  3. mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /tmp/mnt/
  4. /tmp/mnt/VBoxLinuxAdditions.run


  1. Enable GIMP single window mode

mkdir -p /etc/skel/.gimp-2.7/ cat >> /etc/skel/.gimp-2.7/sessionrc << EOF

  1. GIMP sessionrc
  2. This file takes session-specific info (that is info, you want to keep
  3. between two GIMP sessions). You are not supposed to edit it manually, but
  4. of course you can do. The sessionrc will be entirely rewritten every time
  5. 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)

  1. end of sessionrc

EOF


%end


%post --nochroot --log=/mnt/sysimage/root/ks-post.log

  1. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-postinstallconfig.html
  2. --nochroot Allows you to specify commands that you would like to run outside of the chroot environment.


  1. Define variables where config files are located ($LIVE_ROOT)
  2. 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"

  1. 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_by_tiheum-d47vo5d.zip ] ; then

 wget http://www.deviantart.com/download/255099649/faience_icon_theme_by_tiheum-d47vo5d.zip

else

 echo -e "\nFaience icons already downloaded.\n"

fi unzip -o faience_icon_theme_by_tiheum-d47vo5d.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."


  1. Universal GNOME 3 Theme

if [ ! -f universal_by_nale12-d4hne5v.zip ] ; then

 echo -e "\nUniversal theme already downloaded"

else

 echo -e "\nDownloading Universal GNOME 3 theme"
 cd "$LIVE_ROOT"
 curl -L -O http://www.deviantart.com/download/271509619/universal_by_nale12-d4hne5v.zip

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"

else

 echo -e "Universal theme installation failed"

fi


  1. Wallpaper

if [ ! -f rei-forever.jpg ] ; then

 curl rei-forever.jpg -O

else cp rei-forever.jpg "$INSTALL_ROOT/usr/share/backgrounds/"


  1. 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

  1. ./set_dark.sh

cd "$LIVE_ROOT"

  1. 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 <<EOF | tee "$INSTALL_ROOT/etc/skel/.kde/share/apps/konsole/Shell.profile" [Appearance] ColorScheme=SolarizedDark

[General] Icon=utilities-terminal LocalTabTitleFormat=%D : %n Name=Shell Parent=FALLBACK/ RemoteTabTitleFormat=(%u) %H

[Terminal Features] BidiRenderingEnabled=trues EOF


  1. Demo video and audio files
  2. echo -e "\n Create examples folder"
  3. cd "$LIVE_ROOT"
  4. mkdir -p Examples/Videos
  5. cd Examples/Videos
  6. pwd
  7. echo "Examples files download"
  8. wget http://fedoraproject.org/w/uploads/e/e4/Fedora_11_Overview_-_Jesse_Keating.ogg
    1. wget http://fedoraproject.org/w/uploads/8/83/Fedora_11_Overview_-_Spot_Callaway.ogg
    2. wget http://wonderer.fedorapeople.org/Interview_cwickert_24_Apr_2009.ogg
    3. wget http://mspevack.fedorapeople.org/glezos-diegobz-20090403.ogg
    4. wget http://fedoraproject.org/w/uploads/a/a9/Presto_-_Jon_Dieter.ogg
  9. cd ..
  10. mkdir Remix
  11. cd Remix
  12. wget http://www.montanalinux.org/files/newvideos/fedora-10-remix.ogv
  13. cd ..
  14. mkdir Videos
  15. cd Videos
    1. wget http://www.redhat.com/v/magazine/ogg/FUDCon11Recap.ogg
  16. wget http://www.redhat.com/v/ogg/TruthHappensRmx.ogg
  17. youtube-dl http://www.youtube.com/watch?v=SJaTA25tpMg && mv SJaTA25tpMg.mp4 Compiz\ Fusion\ Tutorial.mp4
  18. youtube-dl http://www.youtube.com/watch?v=Pa1RCg-Ccp0 && mv Pa1RCg-Ccp0.flv Linux_MAC_PC.flv
  19. youtube-dl http://www.youtube.com/watch?v=zij7MuY29Ww && mv zij7MuY29Ww.flv GNOME-Do.flv
  20. cd "$LIVE_ROOT"
  21. echo "Example creation folder end"


  1. Make Multimedia Examples folder show on desktop
  2. echo "Make Multimedia Examples folder show on desktop"
  3. cd "$LIVE_ROOT"
  4. mkdir -p "$INSTALL_ROOT/etc/skel/Desktop/"
  5. ls -al "$INSTALL_ROOT/etc/skel" # remove after testing
  6. cp -fR Examples/ "$INSTALL_ROOT/etc/skel/Desktop/" # copy sub directories and all files
    1. cp "$LIVE_ROOT/Examples/" "$INSTALL_ROOT/etc/skel/Desktop/" -R
  7. echo "Make Multimedia Examples folder show on desktop end"


  1. Download and install latest Broadom b43 driver into /lib/firmware/b43

echo "Download and install latest Broadom b43 driver" cd "$LIVE_ROOT"

  1. wget http://downloads.openwrt.org/sources/broadcom-wl-4.80.53.0.tar.bz2
  2. mkdir "$INSTALL_ROOT/extra/broadcom-firmware" -p
  3. cd "$INSTALL_ROOT/extra/broadcom-firmware"

if [ ! -f broadcom-wl-4.150.10.5.tar.bz2 ] # if file already exists no need to download it again then

 echo -e "\nBroadcom firmware not present, downloading..."
 wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2

else

 echo -e "\nBroadcom firmware already present"

fi tar xjf broadcom-wl-4.150.10.5.tar.bz2

  1. cd broadcom-wl-4.150.10.5/driver

b43-fwcutter -w "$INSTALL_ROOT/lib/firmware/" broadcom-wl-4.150.10.5/driver/wl_apsta_mimo.o cd ../../ rm -Rf broadcom-wl-4.150.10.5/

  1. cd "$LIVE_ROOT"

echo -e "\nDownload and install latest Broadom b43 firmware finished"


  1. Download and Install Arista Transcoder, 7 M

cd "$LIVE_ROOT" if [ ! -f arista-0.9.7.tar.gz ] # if file already exists no need to download it again then

 echo "Arista installer not present, downloading..."
 wget http://programmer-art.org/media/releases/arista-transcoder/arista-0.9.7.tar.gz

else

 echo -e "\nArista installer already downloaded"

fi tar xvzf arista-0.9.7.tar.gz cd arista-0.9.7 python setup.py install --root $INSTALL_ROOT cd .. rm -Rf arista-0.9.7/ cd "$LIVE_ROOT"

  1. Fixes for arista 0.9.6 bugs
  2. sed -i -e 's/\/home\/fusion-linux\/arista-0.9.6/\/usr\/bin\/python/g' "$INSTALL_ROOT/usr/bin/arista-gtk" "$INSTALL_ROOT/usr/bin/arista-transcode"
  3. sed -i -e 's/#!./#!\/usr\/bin\/python/g' "$INSTALL_ROOT/usr/bin/arista-gtk" "$INSTALL_ROOT/usr/bin/arista-transcode"
  4. mv "$INSTALL_ROOT/usr/lib/python2.6/site-packages/arista" "$INSTALL_ROOT/usr/lib/python2.7/site-packages/"



%end