Annotation of /trunk/mlivecdbuild/profiles/openvpn-i686/prepare_custom
Parent Directory | Revision Log
Revision 594 -
(hide annotations)
(download)
Sun Oct 14 23:54:04 2007 UTC (16 years, 7 months ago) by niro
File size: 3491 byte(s)
Sun Oct 14 23:54:04 2007 UTC (16 years, 7 months ago) by niro
File size: 3491 byte(s)
-installing fixed wfclient.ini and the default wallpaper
1 | niro | 582 | #!/bin/bash |
2 | |||
3 | # language locales | ||
4 | install -m 0644 $(get_profile custom-files/35locale) ${CDCHROOTDIR}/etc/env.d/ || die | ||
5 | # enable the locale (needed with >=glibc-2.5) | ||
6 | if [[ -x ${CDCHROOTDIR}/usr/sbin/locale-gen ]] | ||
7 | then | ||
8 | source $(get_profile custom-files/35locale) | ||
9 | sed -i "s:^#${LC_ALL}:${LC_ALL}:g" ${CDCHROOTDIR}/etc/locale.gen | ||
10 | chroot ${CDCHROOTDIR} locale-gen | ||
11 | fi | ||
12 | chroot ${CDCHROOTDIR} env-rebuild | ||
13 | |||
14 | # install openvpn-setup initscript | ||
15 | install -m 0755 $(get_profile custom-files/setup-openvpn.rc) ${CDCHROOTDIR}/etc/rc.d/init.d/setup-openvpn || die | ||
16 | MROOT="${CDCHROOTDIR}" rc-config add setup-openvpn | ||
17 | |||
18 | # install single-x11 session script | ||
19 | install -m 0755 $(get_profile custom-files/single-x11.sh) ${CDCHROOTDIR}/usr/sbin/single-x11 || die | ||
20 | install -m 0755 $(get_profile custom-files/single-x11.rc) ${CDCHROOTDIR}/etc/rc.d/init.d/single-x11 || die | ||
21 | MROOT="${CDCHROOTDIR}" rc-config add single-x11 | ||
22 | |||
23 | # add magellan user | ||
24 | chroot ${CDCHROOTDIR} useradd -m -g users -G audio,wheel,cdrom,video,cdrw,usb,games -s /bin/bash magellan | ||
25 | # set password to 'magellan' | ||
26 | chroot ${CDCHROOTDIR} usermod -p $(openssl passwd -1 magellan) magellan | ||
27 | |||
28 | # setup magellan's home | ||
29 | install -m 0644 $(get_profile custom-files/dotxinitrc) ${CDCHROOTDIR}/home/magellan/.xinitrc || die | ||
30 | |||
31 | # setup idesk defaults | ||
32 | install -m 0644 $(get_profile custom-files/dotideskrc) ${CDCHROOTDIR}/home/magellan/.ideskrc || die | ||
33 | install -d ${CDCHROOTDIR}/home/magellan/.idesktop | ||
34 | niro | 584 | chroot ${CDCHROOTDIR} chown -R magellan:users /home/magellan/.ideskrc || die |
35 | chroot ${CDCHROOTDIR} chown -R magellan:users /home/magellan/.idesktop || die | ||
36 | niro | 582 | |
37 | # setup fluxbox defaults | ||
38 | install -d ${CDCHROOTDIR}/home/magellan/.fluxbox | ||
39 | for i in init keys menu menuconfig usermenu | ||
40 | do | ||
41 | install -m 0644 $(get_profile custom-files/fluxbox/${i}) ${CDCHROOTDIR}/home/magellan/.fluxbox || die | ||
42 | done | ||
43 | install -m 0755 $(get_profile custom-files/fluxbox/startup) ${CDCHROOTDIR}/home/magellan/.fluxbox || die | ||
44 | install -d ${CDCHROOTDIR}/home/magellan/.fluxbox/styles | ||
45 | cp -R $(get_profile custom-files/fluxbox/styles/Serenity) ${CDCHROOTDIR}/home/magellan/.fluxbox/styles || die | ||
46 | niro | 594 | install -d ${CDCHROOTDIR}/home/magellan/.fluxbox/backgrounds |
47 | install -m 0644 $(get_profile custom-files/fluxbox/backgrounds/wallpaper.png) ${CDCHROOTDIR}/home/magellan/.fluxbox/backgrounds || die | ||
48 | niro | 582 | chroot ${CDCHROOTDIR} chown -R magellan:users /home/magellan/.fluxbox || die |
49 | |||
50 | # install our custom fluxbox menu generator script | ||
51 | install -m 0755 $(get_profile custom-files/fluxbox-generate_menu_custom.sh) ${CDCHROOTDIR}/usr/bin/fluxbox-generate_menu_custom || die | ||
52 | |||
53 | # allow all users to shutdown the system via sudo | ||
54 | install -m 0440 $(get_profile custom-files/sudoers) ${CDCHROOTDIR}/etc || die | ||
55 | |||
56 | # setup citrix client | ||
57 | install -d ${CDCHROOTDIR}/home/magellan/.ICAClient || die | ||
58 | touch ${CDCHROOTDIR}/home/magellan/.ICAClient/.eula_accepted || die | ||
59 | niro | 594 | install -m 0644 $(get_profile custom-files/wfclient.ini) ${CDCHROOTDIR}/home/magellan/.ICAClient || die |
60 | niro | 593 | chroot ${CDCHROOTDIR} chown -R magellan:users /home/magellan/.ICAClient || die |
61 | niro | 582 | |
62 | # set up our default preferences for firefox | ||
63 | eval CHROOT_$(cat ${CDCHROOTDIR}/etc/env.d/90mozilla-firefox | grep MOZILLA_FIVE_HOME) | ||
64 | niro | 584 | install -m 0644 $(get_profile custom-files/mozilla-firefox-magellan-default-prefs.js) \ |
65 | niro | 582 | ${CDCHROOTDIR}/${CHROOT_MOZILLA_FIVE_HOME}/greprefs/all-magellan.js || die |
66 | niro | 584 | install -m 0644 $(get_profile custom-files/mozilla-firefox-magellan-default-prefs.js) \ |
67 | niro | 582 | ${CDCHROOTDIR}/${CHROOT_MOZILLA_FIVE_HOME}/defaults/pref/all-magellan.js || die |
68 | unset CHROOT_MOZILLA_FIVE_HOME |