-
Notifications
You must be signed in to change notification settings - Fork 0
/
ping.conf
267 lines (242 loc) · 9.7 KB
/
ping.conf
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# Sample ping.conf.
# Should be copied in /etc.
# You need PING 1.12 or more for a /etc/ping.conf file to be used.
#
# How to modify your initrd.gz file:
# 1. Boot PING on a machine that has at least 256 Mo of RAM
# 2. Get a shell when proposed to, by typing 'x' and Enter
# 3. Login as root, no password
# 4. Connect to your network:
# - If there's a DHCP server, type: dhcpcd
# - Else, type (adjust to your config):
# - ifconfig eth0 192.168.0.26 netmask 255.255.255.0 up
# - route add default gw 192.168.0.1
# 5. Mount a remote share (where your initrd.gz file can be found):
# - mount.cifs //192.168.0.1/d\$ /mnt/smbfs -o user=domain\\username
# (or just user=username if this is a local user)
# 6. Assuming both your initrd.gz and ping.conf files are located
# in the root of the share, type:
# - gzip -d /mnt/smbfs/initrd.gz
# - mount -o loop /mnt/smbfs/initrd /mnt/loop
# - mkdir /tmp/rootfs
# - cd /tmp/rootfs
# - tar xvfj /mnt/loop/rootfs.tar.bz2
# - cp /mnt/smbfs/ping.conf /tmp/rootfs/etc/ping.conf
# - tar cvf - * |bzip2 -9 - >/mnt/loop/rootfs.tar.bz2
# - umount /mnt/loop
# - gzip -9 /mnt/smbfs/initrd
#
# Remember that Linux's shell is case-sensitive.
# Tell here what are the TCP/IP parameters of your first network card.
# If you let them commented, dhcp will be tried on your first network card,
# then on your possible second network card if dhcp fails on first one.
# If dhcp fails, IP/Netmask/GW will be asked.
#
#IP=192.168.0.26
#Netmask=255.255.255.0
#Gateway=192.168.0.1
# If you want to use a non-default DHCP timeout, set it here in seconds.
# Let the parameter commented out if default is fine to you (most users).
#
#DHCP_Timeout=15
# Tell here where we can store/retrieve the system images (SMBFS/CIFS).
#
# Images stored on the network:
# Server must be an IP, sorry no DNS.
#
# Images stored locally:
# Use Server to tell PING on which device they'll be found.
# Example: Server=/dev/hda1
#
# If the image can be stored either on hda1, either on sda1, etc., specify
# a comma-separated list of possibilities. They'll all be tried in the order
# you provide, until the image to restore is found.
# Example: Server=/dev/hda1,/dev/sda1,/dev/hda2,/dev/sda2
#
# In this case, Share, User and Passwd are not to be provided, being useless.
# But the Directory param might be necessary.
#
Server=172.16.41.54
Share=images
User=administrator
Passwd=topsecret
Directory=partimage
# You can also specify here the name of the image to restore.
# Typically, you would then specify also where to retrieve the
# system images.
#
# In the case you would like to automatize the creation of a
# new image, set Image_To_Restore to Create_New_Image. If you
# also want to force the name of that future image, use the
# New_Image_Name parameter. You may also set now the names of
# the partitions you'll want PING to store.
#
# Finally, if there's already an image in your Directory called
# after the New_Image_Name you have set, you might define here
# what PING should do with the Already_Existing_Image parameter.
# Set it either to "Replace" (old dir will be removed), either to
# "Rename" (old dir will be renamed to xxx.OLD.YYYYMMDDHHMMSS),
# either to "Update". The Update choice is only possible when the
# preexisting image has been made with version 3.00 or greater
# of PING, and if a xxxx.RecFiles.txt have been recorded (ex.:
# sda1.RecFiles.txt for partition /dev/sda1), containing the
# sizes and checksums of all files found on the part's filesystem.
# And if you set Already_Existing_Image to "Update,Replace",
# PING will try to update, but Replace if there's no
# xxxx.RecFiles.txt. "Update,Rename" is the last possible choice.
#
Image_To_Restore=realtest
#New_Image_Name=My_Local_Backup
#Parts_To_Backup=sda1,sda2,sdb1
#Already_Existing_Image=Update,Rename
# If Repart is set to Y, and if you've got only one partition on
# your local hard disk drive and want to store an image of it
# locally, then this unique partition will be splitted for you.
# If set to N, PING will simply exit. And if commented, you'll
# be asked for what to do. May we suggest you'd better partition
# yourself for this kind of situation.
#
#Repart=Y
# What will PING do after the job is finished ? can be
# - Shell => you're thrown to a Linux bash shell
# - Reboot
# - Shutdown
# If nothing set, you'll be asked.
#
After_Completion=Shutdown
# Will we replace the BIOS if a "bios" file is found ?
# Note that you can simply delete this "bios" file before
# making your restorations to avoid having your bios params
# modified, but in some cases, you might want to have the
# bios settings recorded, and to restore them on a selection
# of target stations.
#
Replace_BIOS=N
# To map a MS share, SAMBA can use either SMBFS either CIFS.
# For some reasons, it has been constated that CIFS can be
# much faster than SMBFS on some types of networks. And the
# contrary is true, too!
#
# Note: SMBFS is deprecated and will be removed soon.
#
CIFS_Preferred=Y
# To map a NFS share, use this option. The command PING will
# use will look like this:
# mount -t nfs SERVER:/home/y/share/ping /mnt/smbfs
#
# Use above Server, Share, Directory parameters. To make it
# clear: above param Server is "SERVER", above param Share is
# "/home/y/share", and above param Directory is "ping".
# Parameters User and Passwd are *not* used.
#
# Finally, if you need to add files to the PING tree, add a
# a addon-xxxx.tar.gz file to your image (same place as kernel
# and initrd.gz). It will be untarred to the root of the OS
# before any operation is done.
#
#NFS_Preferred=Y
# To map a FTP share, use this option.
#
# Use above Server, Directory, User, Passwd parameters.
# The Share parameter has no use in this case.
#
# Note: we have succesfully restored a station through FTP,
# but have been unable to create an image to such a share.
# Note: no proxy settings yet.
#
#FTP_Preferred=Y
# In some situations, you might want zsplit to be preferred
# to partimage.
#
#Zsplit_Preferred=Y
# In some situations, you might want a tarball to be preferred
# to partimage.
#
#Tarball_Preferred=Y
# It can be interesting to reduce the size of the partition
# before storing it. Thus, it's possible to restore it later
# into a smaller partition. Note that even if we decide later
# to restore into a equally-big or bigger partition, PING will
# always try to maximize the size of the filesystem at the end.
#
#Minimize_Before_Storing=Y
# If you don't want the proposal for a shell to be displayed,
# set this option to Y. Default is to propose it.
#
No_Shell=Y
# If you want NO QUESTION to be raised, no popup at all,
# set this value to Y. It's equivalent to creating an empty
# AUTO file on the root of a PING CD/DVD (which is now
# deprecated, yet still supported for backwards compatibility).
#
AUTO=Y
# Cmd_1 is a command for PING to execute before the first blue
# welcome screen, Cmd_2 is a command for PING to execute after
# the mounting of SMB shares and Cmd_3 is a command for PING to
# execute at the end (before giving a shell or reboot or shutdown).
# Think of it as a tool to combine with a possible add-on.
#
#Cmd_1=
#Cmd_2=
#Cmd_3=
# Set this parameter to Y to prevent the user from creating
# an image. Only restoration will be allowed. If you've set
# the AUTO param to Y, you'll probably want Restore_Only to
# be set to Y too.
#
Restore_Only=Y
# Set the compressor to be used. Else, will be asked.
# Can be set to 'gzip', 'bzip2' or 'no compression'.
#
Compression_Type=gzip
# Sometimes, you create an image from an IDE disk, and files
# are called hda, hda1.000, etc. and you want to restore it to
# a system with a SATA disk, and this device is called /dev/sda,
# and because of this, PING won't restore anything (unless you
# rename hda to sda etc.)
#
# In our example, if you set the Its_HDA_Stupid param to Y,
# PING will look for a sda device and restore to it.
# Else, PING will propose a list of possible targets.
# Basically, set this param to Y if you want no interactivity
# and if you generally have both IDE and SATA/SCSI devices.
#
#Its_HDA_Stupid=Y
# If set to Y, we'll mount R/W NTFS filesystems even if they
# have the dirty flag set. It's not recommended, of course,
# but it might help sometimes.
#
#Force_Dirty_NTFS_Mount=Y
# Sometimes, you'll restore images to a bigger drive.
# Sometimes, there will be empty space after or between parts.
# Set this parameter to Y if you want PING to extend partitions
# and contained filesystems each time it's possible. If the
# param is not set, PING will ask the user.
#
Extend_Parts_Whenever_Possible=N
# You can prevent PING from showing frightening warning screens
# if you don't want to scare your users!
#
Dont_Warn_Me=Y
# You can have PING store all names, sizes and MD5 checksums
# of files contained in a partition you store. In this case,
# this information will be stored in a file called
# sda.RecFiles.txt and stored in your image directory.
# The presence of this file will make it possible for you
# to have PING update this image later.
#
# (Not really an update, because partimage and zsplit-stored
# files cannot be addressed, but modified or added files will
# be stored in an archive, added to the partimage/zsplit files).
#
#Store_MD5=Y
# Defines the verbosity level (still, everything stored in /tmp/x.log)
# 0 = no verbosity at all
# 1 = only warnings and errors
# 2 = everything (default)
#
#Verbosity=0
# If Verbosity is set to 0, it's a good idea to tell users that
# PING is still working on the system. Customize the message there.
#
#Unique_Message="PING is still working..."