Toon posts:

[MDK9.0/Perl] Replay install...postinstall

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb een auto-install scriptje gemaakt...alles gaat goed, maar hij voert het postinstall gedeelte niet uit....heb al lopen zoeken, maar heb nog geen fout kunnen vinden in de syntax... Ik heb het hele script hieronder gepost. Zien de scriptgoeroes hier misschien toch een fout in?

code:
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
230
231
#!/usr/bin/perl -cw
#
# You should check the syntax of this file before using it in an auto-install.
# You can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
# (note the '#!/usr/bin/perl -cw' on the first line).
$o = {
       'libsafe' => 0,
       'security_user' => '',
       'netc' => {
           'NETWORKING' => 'yes',
           'GATEWAY' => '192.168.0.1',
           'nb_cards' => 1,
           'GATEWAYDEV' => undef,
           'HOSTNAME' => 'ica.arie.nl',
           'autodetect' => {
                     'isdn' => {
                         'card_type' => undef,
                         'type' => undef,
                         'id' => undef,
                         'description' => undef,
                         'driver' => undef,
                         'vendor' => undef
                           },
                     'lan' => {
                        'eth0' => '8139too'
                          }
                   },
           'internet_cnx_choice' => 'local network',
           'internet_cnx' => {
                       'local network' => {
                                'type' => 'lan',
                                '/etc/sysconfig/network-scripts/net_cnx_up' => '
/etc/rc.d/init.d/network restart
',
                                '/etc/sysconfig/network-scripts/net_cnx_down' => '
/etc/rc.d/init.d/network stop
/sbin/ifup lo
'
                              }
                     },
           'DOMAINNAME' => 'arie.nl',
           'dnsServer' => '194.109.6.66',
           'minus_one' => 0,
           'NET_DEVICE' => '',
           'autodetection' => 1,
           'FORWARD_IPV4' => 'false'
         },
       'default_packages' => [
                   'locales-en',
                   'msec',
                   'vim-enhanced',
                   'mandrake_desk',
                   'XFree86',
                   'urw-fonts',
                   'netpbm',
                   'eject',
                   'urpmi',
                   'man',
                   'hotplug',
                   'XFree86-75dpi-fonts',
                   'ed',
                   'sox',
                   'tmpwatch',
                   'groff',
                   'words',
                   'XFree86-server',
                   'gnupg',
                   'menudrake',
                   'mtools',
                   'openssh-clients',
                   'procmail',
                   'rxvt',
                   'userdrake',
                   'at',
                   'autologin',
                   'bc',
                   'bootsplash',
                   'devfsd',
                   'drakconf',
                   'drakfirsttime',
                   'draksync',
                   'ftp-client-krb5',
                   'gpm',
                   'grub',
                   'harddrake',
                   'hexedit',
                   'icewm-light',
                   'info',
                   'ldetect',
                   'linuxconf',
                   'mandrake-mime',
                   'mdkonline',
                   'mkxauth',
                   'nfs-utils-clients',
                   'numlock',
                   'open',
                   'quota',
                   'rfbdrake',
                   'rpmdrake',
                   'samba-client',
                   'slocate',
                   'strace',
                   'sudo',
                   'telnet-client-krb5',
                   'traceroute',
                   'usbview',
                   'xfsprogs'
                 ],
       'useSupermount' => 1,
       'isUpgrade' => '',
       'users' => [
            {
              'icon' => 'default',
              'pw' => '$1$XvyPxxr3$wFddpl7h8xBXTjnD.cTih/',
              'uid' => 501,
              'name' => 'av',
              'realname' => 'av',
              'groups' => [],
              'shell' => '/bin/bash',
              'home' => '/home/av',
              'gid' => 501
            }
          ],
       'authentication' => {
                 'NIS' => '',
                 'shadow' => 1,
                 'winbind' => '',
                 'LDAP' => '',
                 'md5' => 1
               },
       'netcnx' => {
             'NET_DEVICE' => '',
             'type' => 'lan',
             'lan' => {},
             'NET_INTERFACE' => undef,
             'PROFILE' => undef
           },
       'superuser' => {
            'pw' => '$1$VdEZ7S6o$0wjtvngo4274zPDnQib6G.',
            'uid' => '0',
            'realname' => 'root',
            'shell' => '/bin/bash',
            'home' => '/root',
            'gid' => '0'
              },
       'mouse' => {
            'XMOUSETYPE' => 'PS/2',
            'name' => 'Standard',
            'device' => 'psaux',
            'type' => 'PS/2',
            'nbuttons' => 2,
            'MOUSETYPE' => 'ps/2'
          },
       'autoExitInstall' => '',
       'mkbootdisk' => '',
       'keyboard' => {
               'GRP_TOGGLE' => '',
               'KBCHARSET' => 'C',
               'KEYBOARD' => 'us'
             },
       'manualFstab' => [],
       'lang' => 'en_US',
       'timezone' => {
               'ntp' => undef,
               'timezone' => 'Europe/Brussels',
               'UTC' => 1
             },
       'services' => [
               'alsa',
               'atd',
               'crond',
               'devfsd',
               'dm',
               'gpm',
               'harddrake',
               'internet',
               'keytable',
               'kheader',
               'linuxconf',
               'netfs',
               'network',
               'nfslock',
               'numlock',
               'partmon',
               'portmap',
               'random',
               'rawdevices',
               'sound',
               'syslog',
               'xfs'
             ],
              'intf' => {
           'eth0' => {
                   'WIRELESS_NWID' => undef,
                   'BROADCAST' => '192.168.0.255',
                   'WIRELESS_MODE' => undef,
                   'WIRELESS_IWPRIV' => undef,
                   'BOOTPROTO' => 'static',
                   'WIRELESS_IWCONFIG' => undef,
                   'WIRELESS_IWSPY' => undef,
                   'DEVICE' => 'eth0',
                   'WIRELESS_SENS' => undef,
                   'WIRELESS_ESSID' => undef,
                   'NETMASK' => '255.255.255.0',
                   'WIRELESS_RTS' => undef,
                   'WIRELESS_FRAG' => undef,
                   'WIRELESS_FREQ' => undef,
                   'IPADDR' => '192.168.0.200',
                   'NETWORK' => '192.168.0.0',
                   'WIRELESS_ENC_KEY' => undef,
                   'ONBOOT' => 'yes',
                   'WIRELESS_RATE' => undef
                 }
         },
       'partitioning' => {
               'clearall' => 1,
               'auto_allocate' => 1,
               'eraseBadPartitions' => 0
             },
       'security' => 2,
       'interactiveSteps' => [
                   'configureNetwork',
                   'configureX',
                 ],
    'postInstall' => " 
    cd /
    wget ftp://nep:nep4@xxx.xxx.xxx.xx/ica/install
    chmod +x /install
    /install
    "
     };

  • 0cool
  • Registratie: April 2001
  • Laatst online: 04-06-2024
als je dit gedeelte rechtstreeks in de commandline uitvoert werkt het dan wel?

cd /
wget ftp://nep:nep4@xxx.xxx.xxx.xx/ica/install
chmod +x /install
/install

moet /install niet /.install zijn?

You thought your secrets were safe. You were wrong


Verwijderd

Topicstarter
Hej 0cool....leevie ook nog, wanneer kommie weers een daagie? :)
als ik het gewoon uitvoer dan werkt het wel...
en het moet niet /.install zijn btw...

Heb maar ff topicmove aangevraagd....NOS -> P&W
Daar zitten de echte scriptgoeroes volgens mij

  • 0cool
  • Registratie: April 2001
  • Laatst online: 04-06-2024
vrijdag ben ik weer paraat, en jij hebt geen recht van spreken he..... :P
maareh eens kijken of ze het daar weten, maar het bestand wordt wel gedownload... en heeft het niets met userrights te maken?

You thought your secrets were safe. You were wrong


Verwijderd

Topicstarter
Hij start gewoon gelijk opnieuw op...volgens mij slaatie dat gedeelte gewoon over...
Kzie niet: entering step: postinstall ofzo...
Kzal er es en breakie tussen zetten en autoexitinstall=0 maken

Verwijderd

NOS > PW
Op verzoek van d2k O-)

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 09-01 11:25

D2k

titel fix
en tis D2k :(

Doet iets met Cloud (MS/IBM)


Verwijderd

Topicstarter
Kickje...(heb eerlijk gezegd ook nog geen tijd gehad om andere dingen te testen)

Verwijderd

Topicstarter
Het gaat dus vooral om het laatste gedeelte, wat hij niet uitvoert: dus het postinstall gedeelte
Pagina: 1