Subversion Repositories ALCASAR

Rev

Go to most recent revision | 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
	# Security level: 
10
	# 	* 2 is for standard
11
	#	* 3 for High
12
	#	* 4 for Higher
13
	#	* 5 for Paranoïd
14
	'security' => 2,
15
 
16
	# Authentication method
17
	'authentication' => {
18
		'shadow' 	=> 1,
19
		'blowfish' 	=> 1
20
	},
21
 
22
	# Non admin user sysadmin
23
	'users' => [
24
		{
25
		'shell' 	=> '/bin/bash',
26
		'realname' 	=> 'sysadmin',
27
		'name' 		=> 'sysadmin',
28
        'pw'        => '$2a$08$0Y9PuTN.3A3T57duRBZ3YOd6LALzsRx/jEDCBiaVNBg/tA1YJvZIC',
29
		'groups' 	=> [],
30
		}
31
	],
32
 
33
	# Superuser (root) definition
34
	'superuser' => {
35
		'shell' 	=> '/bin/bash',
36
		'realname' 	=> 'root',
37
		'pw' 		=> '$2a$08$FJ4lI4royRd2crXB1yWvJO9BMMoBbbUw/YRX8kaQ/6zb/poOjTFM2',
38
		'home' 		=> '/root',
39
		'uid' 		=> '0',
40
		'gid' 		=> '0'
41
	},
42
 
43
	# Default packages for the new distribution
44
	# Basic package for a minimalist system
45
	'default_packages' => [
46
		'plymouth',
47
		'aria2',
48
		'netprofile',
49
		'sudo',
50
		'cdrkit',
51
		'sharutils',
52
		'ldetect',
53
		'alsa-utils',
54
		'pm-utils',
55
		'lsof',
56
		'ntfs-3g',
57
		'nscd',
58
		'bash-completion',
59
		'mageia-gfxboot-theme',
60
		'basesystem',
61
		'dhcp-client',
62
		'aoss',
63
		'kernel-desktop-latest',
64
		'dvd+rw-tools',
65
		'vim-minimal',
66
        'vim-enhanced',
67
		'acpi',
68
		'locales-fr',
69
		'locales-en',
70
		'mandi-ifw',
71
		'grub',
72
		'lftp',
73
		'shorewall-ipv6',
74
		'usbutils',
75
		'rtlwifi-firmware',
76
		'kernel-firmware-nonfree',
77
		'iwlwifi-agn-ucode',
78
		'radeon-firmware',
79
		'ralink-firmware',
80
		'autologin',
81
		'wget'
82
	],
83
 
84
	# Partitionning : control the partitioning of the target system's 
85
	# hard disk drives
86
	'partitioning' => {
87
		# Set to 1 if disk partitions are to be defined by the 
88
		# option partitions
89
		'auto_allocate' => 1,
90
 
91
		# 1: all the existing partitions on ALL disks are to be cleared
92
		# 	 and replaced
93
		# 0: the disks are to be left untouched or, you are goeing to 
94
		#	 use "clear" instead
95
		'clearall' 		=> 1
96
	},
97
 
98
	# Partitions option is used to define the partitions that are to be 
99
	# created on the hard disk
100
	# TODO: SWAP for 64-bits
101
	'partitions' => [
102
		# First partition, 5Go -> '/' -> ext4
103
		{
104
			'mntpoint' 		=> '/',
105
			'size' 			=> 5000 << 11,
106
			'fs_type' 		=> 'ext4'
107
		},
108
 
109
		# Second partition, swap
110
		{
111
			'mntpoint' 		=> 'swap',
112
			'size' 			=> 4000 << 11,
113
			'fs_type' 		=> 'swap'
114
		},
115
 
116
		# Third partition, 5Go -> '/tmp'
117
		{
118
			'mntpoint' 		=> '/tmp',
119
			'size' 			=> 5000 << 11,
120
			'fs_type' 		=> 'ext4'
121
		},
122
 
123
		# Fourth partition, 5Go -> '/home' -> ext4
124
		{
125
			'mntpoint' 		=> '/home',
126
			'size' 			=> 5000 << 11,
127
			'fs_type' 		=> 'ext4'
128
		},
129
 
130
		# Fifth partition, /var with rest of the disk
131
		{
132
			'mntpoint' 		=> '/var',
133
			'size' 			=> 10 << 11,
134
			'ratio'			=> 100,
135
			'fs_type' 		=> 'ext4',
136
		}
137
	],
138
 
139
	# Interactive steps option
140
	# http://members.shaw.ca/mandrake/ -> section Replay Steps for 
141
	# more informations
142
	'interactiveSteps' => [
143
		# Select language(s) support to be installed.
144
		'selectLanguage',
145
 
146
		# Do partitionning, comment this if you want to automate this step
147
		'doPartitionDisks',
148
 
149
		# Select the desired keyboard.
150
		'selectKeyboard',
151
 
152
		# Allows you to Accept or Refuse the License Agreement.
153
		'acceptLicense',
154
 
155
		# Select the time zone, GMT/Local hardware clock and if you 
156
		# want NTP installed.
157
		'summary'
158
	],
159
 
160
	# Post installation script, executed as root in the installed 
161
	# environments and not inside the DrakX installation program
162
	'postInstallNonRooted' => "
163
		# Copying Alcasar needed rpms
164
		tar -xf /tmp/image/install/alcasar/rpms-*.tar.gz -C /mnt/var/cache/urpmi/rpms
165
 
166
		# Copying Alcasar archive to the root directory
167
		tar -xf /tmp/image/install/alcasar/alcasar.tar.gz -C /mnt/root/
168
 
169
		# Copying the first login script to the root directory
170
		cp /tmp/image/install/alcasar/first_login /mnt/root/
171
 
172
		# Editing bashrc
173
		echo '[[ -f first_login ]] && bash first_login;' >> /mnt/root/.bashrc
174
	",
175
 
176
	# Exit without prompt after installation is finished
177
	# 0 - prompt the installer to re-boot and wait
178
	# 1 - reboot the computer automatically
179
	'autoExitInstall' => 1
180
};