Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2682 rexy 1
#!/usr/bin/perl -cw
2
# 
3
# Configuration file written by :
4
# 	* Hamza ESSAYEGH (Querdos)
5
#
6
# /!\ Before putting this file in the iso, check the syntax with
7
# 	  `perl -cw auto_inst.cfg.pl`
8
$o = {
9
    # Keyboard settings
10
    'keyboard' => {
11
        'GRP_TOGGLE' => '',
12
        'KEYBOARD' => 'fr'
13
    },
14
 
15
    # Locale setting
16
    'locale' => {
17
        'lang' => 'fr',
18
        'IM' => undef,
19
        'langs' => {
20
            'fr' => 1
21
        },
22
        'country' => 'FR',
23
        'utf8' => 1
24
    },
25
 
26
	# Security level: 
27
	# 	* 2 is for standard
28
	#	* 3 for High
29
	#	* 4 for Higher
30
	#	* 5 for Paranoïd
31
	'security' => 2,
32
 
33
	# Non admin user sysadmin
34
    # TODO: Group for sysadmin ?
35
	'users' => [
36
		{
37
		'shell' 	=> '/bin/bash',
38
		'realname' 	=> 'sysadmin',
39
        'pwd'       => '$2a$08$0Y9PuTN.3A3T57duRBZ3YOd6LALzsRx/jEDCBiaVNBg/tA1YJvZIC',
40
		'name' 		=> 'sysadmin',
41
		'groups' 	=> [],
42
		}
43
	],
44
 
45
	# Authentication method
46
	'authentication' => {
47
		'shadow' 	=> 1,
48
		'blowfish' 	=> 1
49
	},
50
 
51
	# Superuser (root) definition
52
	'superuser' => {
53
		'shell' 	=> '/bin/bash',
54
		'realname' 	=> 'root',
55
		'pw' 		=> '$2a$08$FJ4lI4royRd2crXB1yWvJO9BMMoBbbUw/YRX8kaQ/6zb/poOjTFM2',
56
		'home' 		=> '/root',
57
		'uid' 		=> '0',
58
		'gid' 		=> '0'
59
	},
60
 
61
	# Default packages for the new distribution
62
	# Basic package for a minimalist system, ALCASAR will handle 
63
	# the rest
64
	# TODO: Default packages for x86_64
65
	'default_packages' => [
66
		'plymouth',
67
		'aria2',
68
		'netprofile',
69
		'sudo',
70
		'cdrkit',
71
		'sharutils',
72
		'ldetect',
73
		'alsa-utils',
74
		'pm-utils',
75
		'lsof',
76
		'ntfs-3g',
77
		'nscd',
78
		'bash-completion',
79
		'mageia-gfxboot-theme',
80
		'basesystem',
81
		'dhcp-client',
82
		'aoss',
83
		'kernel-desktop-latest',
84
		'dvd+rw-tools',
85
		'vim-minimal',
86
		'acpi',
87
		'locales-fr',
88
		'mandi-ifw',
89
		'grub',
90
		'lftp',
91
		'shorewall-ipv6',
92
		'usbutils',
93
		'rtlwifi-firmware',
94
		'kernel-firmware-nonfree',
95
		'iwlwifi-agn-ucode',
96
		'radeon-firmware',
97
		'ralink-firmware',
98
		'autologin',
99
		'wget',
100
 
101
		# Packages needed by alcasar
102
        'freeradius',	
103
        'freeradius-mysql',
104
        'freeradius-ldap',
105
        'apache',		
106
        'apache-mod_ssl',
107
        'apache-mod_php',
108
        'dansguardian',
109
        'postfix',
110
        'mariadb',
111
        'ntp',
112
        'bind-utils',
113
        'openssh-server', 
114
        'php-xml',
115
        'php-ldap',
116
        'php-mysql',
117
        'php-mysqli',
118
        'php-mbstring',
119
        'php-sockets',
120
        'php-cli',
121
        'php-curl',
122
        'php-pdo_sqlite',
123
        'php-json',
124
        'rng-utils',
125
        'rsync',
126
        'clamav',
127
        'perl-rrdtool',
128
        'perl-MailTools',
129
        'perl-Socket6',
130
        'fail2ban',
131
        'gnupg',
132
        'ulogd',
133
        'pm-fallback-policy',
134
        'ipset',
135
        'cronie-anacron',
136
        'gammu',
137
        'usbutils',
138
        'locales-en',
139
        'usb_modeswitch',
140
        'tinyproxy',
141
        'vnstat',
142
        'php-gd',
143
        'sudo',
144
        'iftop',
145
        'man',
146
        'kernel-firmware-nonfree',
147
        'dos2unix'
148
	],
149
 
150
	# Partitionning : control the partitioning of the target system's 
151
	# hard disk drives
152
	'partitioning' => {
153
		# Set to 1 if disk partitions are to be defined by the 
154
		# option partitions
155
		'auto_allocate' => 1,
156
 
157
		# 1: all the existing partitions on ALL disks are to be cleared
158
		# 	 and replaced
159
		# 0: the disks are to be left untouched or, you are goeing to 
160
		#	 use "clear" instead
161
		'clearall' 		=> 1
162
	},
163
 
164
	# Partitions option is used to define the partitions that are to be 
165
	# created on the hard disk
166
	# TODO: SWAP for 64-bits
167
	'partitions' => [
168
		# First partition, 5Go -> '/' -> ext4
169
		{
170
			'mntpoint' 		=> '/',
171
			'size' 			=> 5000 << 11,
172
			'fs_type' 		=> 'ext4'
173
		},
174
 
175
		# Second partition, swap
176
		{
177
			'mntpoint' 		=> 'swap',
178
			'size' 			=> 4000 << 11,
179
			'fs_type' 		=> 'swap'
180
		},
181
 
182
		# Third partition, 5Go -> '/tmp'
183
		{
184
			'mntpoint' 		=> '/tmp',
185
			'size' 			=> 5000 << 11,
186
			'fs_type' 		=> 'ext4'
187
		},
188
 
189
		# Fourth partition, 5Go -> '/home' -> ext4
190
		{
191
			'mntpoint' 		=> '/home',
192
			'size' 			=> 5000 << 11,
193
			'fs_type' 		=> 'ext4'
194
		},
195
 
196
		# Fifth partition, /var with rest of the disk
197
		{
198
			'mntpoint' 		=> '/var',
199
			'size' 			=> 10 << 11,
200
			'ratio'			=> 100,
201
			'fs_type' 		=> 'ext4',
202
		}
203
	],
204
 
205
	# Interactive steps option
206
	# http://members.shaw.ca/mandrake/ -> section Replay Steps for 
207
	# more informations
208
	'interactiveSteps' => [
209
		# Allows you to Accept or Refuse the License Agreement.
210
		'acceptLicense',
211
 
212
		# Select the time zone, GMT/Local hardware clock and if you 
213
		# want NTP installed.
214
		'summary'
215
	],
216
 
217
	# Post installation script, executed as root in the installed 
218
	# environments and not inside the DrakX installation program
219
	'postInstallNonRooted' => "
220
		# Copying Alcasar needed rpms
221
		tar -xf /tmp/image/install/alcasar/rpms-*.tar.gz -C /mnt/var/cache/urpmi/rpms
222
 
223
		# Copying Alcasar archive to the root directory
224
		tar -xf /tmp/image/install/alcasar/alcasar.tar.gz -C /mnt/root/
225
 
226
		# Copying the first login script to the root directory
227
		cp /tmp/image/install/alcasar/first_login /mnt/root/
228
 
229
		# Editing bashrc
230
		echo '[[ -f first_login ]] && bash first_login;' >> /mnt/root/.bashrc
231
	",
232
 
233
	# Exit without prompt after installation is finished
234
	# 0 - prompt the installer to re-boot and wait
235
	# 1 - reboot the computer automatically
236
	'autoExitInstall' => 1
237
};