summaryrefslogtreecommitdiffstats
path: root/fedora-livecd-desktop-fr_FR.ks
blob: 3e565d0e8a58205c3202b0921df5db4fa7fed5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# fedora-livecd-desktop-fr_FR.ks
#
# Maintainer(s):
# - Nicolas Chauvet (kwizart) kwizart@fedoraproject.org

%include fedora-live-base.ks
#include fedora-livecd-desktop.ks
#We link direcly to the live-base to avoid removal of 
#our localized man-pages-fr and aspell-fr/hunspell-fr

# change some system configurations
# System keyboard
keyboard fr-oss
# System language
lang fr_FR.UTF-8
# System timezone
timezone  Europe/Paris

%packages --instLangs en:fr:fr_FR:fr-FR
#--excludedocs
###
### This is the customized fedora-livecd-desktop.ks part for fr_FR ###
###
@graphical-internet
@graphics
@sound-and-video
@gnome-desktop
nss-mdns
NetworkManager-openvpn
# we don't include @office so that we don't get OOo.  but some nice bits
##abiword fr_FR
#gnumeric
#planner
#inkscape

# dictionaries are big
##-aspell-* fr_FR
##-hunspell-* fr_Fr
##-man-pages-* fr_Fr
##-words fr_FR

# save some space
-gnome-user-docs
-gimp-help
-gimp-help-browser
-evolution-help
-gnome-games
-gnome-games-help
totem-gstreamer
-totem-xine
-nss_db
-vino
-isdn4k-utils
-dasher
-evince-dvi
-evince-djvu
# not needed for gnome

# these pull in excessive dependencies
##ekiga fr_FR
-tomboy
-f-spot
###
### /end customized fedora-livecd-desktop.ks part for fr_FR ###
###

### fr_FR basic
@french-support

### Tweaks possible from above customization
# Localized dictionaries and man-pages
hunspell-fr
hyphen-fr
man-pages-fr
#

### fr_FR - Features & Additions
###
java-1.7.0-openjdk-plugin
# PulseAudio
pulseaudio-module-zeroconf
paman
paprefs
padevchooser
pavucontrol
pavumeter
# Internet
#NetworkManager-openconnect
NetworkManager-pptp
gobby
thunderbird
xchat
# Desktop tools
openoffice.org-writer
openoffice.org-calc
openoffice.org-impress
#openoffice.org-draw
openoffice.org-langpack-fr
# Some tools
#prelink
#gnomebaker
gparted
livecd-tools
nautilus-open-terminal
powertop
testdisk
wget
# Multimedia
cups-pdf
gutenprint-plugin
xsane-gimp
# Hardware Support
libertas-usb8388-firmware
#firmware-addon-dell
alsa-firmware
midisport-firmware
-b43-fwcutter
-bcm43xx-fwcutter


### fr_FR - Save space & Removals
###
#Gnome Tweaking
-evolution
-evolution-perl
#-evolution-webcal
-docbook*
-yelp
-beagle
#-bluecurve-icon-theme
#samba-client
#This one bring httpd
-gnome-user-share
verbiste-gnome
-conduit
#Other desktop env
-m17n*
-lohit*
#Fonts (wip checked)
-cjkuni*
-smc*
-lohit*
-baekmuk*
#herited from local-support that we do not need
-kacst-fonts
-paktype-fonts
-thaifonts*
-un-core*
-padauk-fonts
-khmeros*
# heeh - we don't need this either
-dos2unix
-unix2dos
-ibus*


%end


%post
###
### This part is from fedora-livecd-desktop.ks
###
cat >> /etc/rc.d/init.d/livesys << EOF
# disable screensaver locking
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null
# set up timed auto-login for after 60 seconds
cat >> /etc/gdm/custom.conf << FOE
[daemon]
TimedLoginEnable=true
TimedLogin=liveuser
TimedLoginDelay=60
FOE

EOF
###
### /end of fedora-livecd-desktop.ks
###

###
### fr_FR customization
###
#Fix for initng
#ln -s /sbin/MAKEDEV /usr/sbin/MAKEDEV
#Fix for PA server activated by default - needs nondefault hostname
#sed -i -e 's|localhost|systemlive|' /etc/sysconfig/network
# Localized system timezone
#cp -p /usr/share/zoneinfo/Europe/Paris /etc/localtime
# Localized default firefox dictionary
echo "pref(\"spellchecker.dictionary\", \"fr_FR\");" >> \
  /usr/lib/xulrunner-1.9.1/defaults/pref/all-redhat.js
echo "pref(\"spellchecker.dictionary\", \"fr_FR\");" >> \
  /usr/lib64/xulrunner-1.9.1/defaults/pref/all-redhat.js
#sed -i -e 's/en-US/fr-FR/g' \
#  /usr/lib/firefox-*/defaults/preferences/firefox-l10n.js
# Localized default thunderbird dictionary
sed -i -e 's/en-US/fr-FR/g' \
  /usr/lib/thunderbird-*/defaults/pref/all-l10n.js
sed -i -e 's/en-US/fr-FR/g' \
  /usr/lib64/thunderbird-*/defaults/pref/all-l10n.js
#Default to thunderbird
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=string /desktop/gnome/url-handlers/mailto/command 'thunderbird "%s"'
#Echo icon theme
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=string /desktop/gnome/interface/icon_theme Echo
# Prelink the livecd filesystem
#./usr/sbin/prelink -av -mR -l
##PulseAudio
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /system/pulseaudio/modules/remote-access/enabled true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /system/pulseaudio/modules/remote-access/anonymous_enabled true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /system/pulseaudio/modules/remote-access/zeroconf_enabled true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /system/pulseaudio/modules/rtp-recv/enabled true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /system/pulseaudio/modules/rtp-send/enabled true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /system/pulseaudio/modules/zeroconf-discover/enabled true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /apps/padevchooser/no_notify_on_startup true
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults  --set --type=bool /apps/padevchooser/notify_on_server_discovery true
#Copy the default desktop file to autostart
cp -p /usr/share/applications/padevchooser.desktop /etc/xdg/autostart/padevchooser.desktop
#autostart padevchooser.desktop
sed -i -e 's|chown -R liveuser:liveuser /home/liveuser/.config|ln -s /usr/share/applications/padevchooser.desktop /home/liveuser/.config/autostart/padevchooser.desktop\nchown -R liveuser:liveuser /home/liveuser/.config|' /etc/rc.d/init.d/livesys
#Add default user to the pulse-rt group
sed -i -e 's|passwd -d liveuser > /dev/null|/usr/sbin/usermod -G pulse-rt -a liveuser\npasswd -d liveuser > /dev/null|' /etc/rc.d/init.d/livesys

%end

%post --nochroot
#Overwrite for a localized README
cp -pR $INSTALL_ROOT/usr/share/doc/HTML/readme-live-image/fr/readme-live-image-fr.txt $LIVE_ROOT/README

%end