-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.ubuntu.warty
560 lines (434 loc) · 16.7 KB
/
install.ubuntu.warty
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
Install Crib Sheet for Ubuntu 4.10 (Warty)
##################### BASE INSTALL SECTION #########################
1.) Boot the install cd and follow instructions to do the base install.
Set up machine as desired. Fairly self-explanatory.
2.) After machine is up, edit /etc/apt/sources.list and do the following:
a.) Uncomment the two "universe" lines
b.) Change:
deb http://archive.ubuntu.com/ubuntu warty universe
- to
deb http://archive.ubuntu.com/ubuntu warty universe multiverse
c.) Add the lines:
deb http://ubuntu-bp.sourceforge.net/ubuntu warty-backports main universe
deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb http://ubuntu.tower-net.de/ubuntu/ warty java
d.) Comment out the cdrom line
3.) Do:
apt-get update
apt-get dist-upgrade
- (this last bit might need to be repeated until it can get all the packages
successfully)
4.) Install lots of things (as above. this might need to be repeated):
apt-get install nmap whois logjam k3b flashplugin-nonfree bittorrent gif2png gimp-svg cups-pdf tetex-base tetex-bin tetex-extra prosper chrony sane sane-utils scribus xine-ui gxine kaffeine libdvdcss2 w32codecs gv cgoban gnugo penguin-command kino kino-dvtitler kinoplus kino-timfx grip gqview traceroute symlinks xfce4 xfce4-goodies xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-themes xfce4-toys xfce4-trigger-launcher xfce4-wavelan-plugin xfce4-weather-plugin xfce4-windowlist-plugin xfce4-xkb-plugin xffm4 xffm4-icons gkrellm gkrellm-alltraxclock gkrellm-bfm gkrellm-hddtemp gkrellm-ibam gkrellmitime gkrellm-leds gkrellm-mailwatch gkrellmms gkrellm-radio gkrellm-reminder gkrellm-snmp gkrellmss gkrellm-volume gkrellmwho2 gkrellmwireless gkrellm-x86info wmaker wmakerconf wmakerconf-data wmaker-data aterm ipsec-tools xmms xmms-alarm xmms-arts xmms-blursk xmms-bumpscope xmms-cdread xmms-crossfade xmms-dbmix xmms-defx xmms-festalon xmms-finespectrum xmms-flac xmms-fmradio xmms-goodnight xmms-goom xmms-infinity xmms-infopipe xmms-iris xmms-jack xmms-jess xmms-ladspa xmms-lirc xmms-liveice xmms-mad xmms-modplug xmms-msa xmms-normalize xmms-osd-plugin xmms-qbble xmms-rplay xmms-shell xmms-sid xmms-singit xmms-skins xmms-stats xmms-status-plugin xmms-synaesthesia xmms-volnorm xmms-wmdiscotux xmms-xf86audio units unison-gtk xfrisk wine dar gdm-themes tftp-hpa xfig audacity mozilla-thunderbird mozilla-thunderbird-enigmail mozilla-thunderbird-offline mozilla-thunderbird-typeaheadfind mozilla-thunderbird-inspector mozilla-firefox-gnome-support portsentry xnest ssmtp openssh-server vncserver sysutils mono monodevelop monodoc ardour-gtk gnuplot gnuplot-mode gstreamer-plugins lame gcc libimlib2 libimlib2-dev libxft-dev sun-j2sdk1.5 libjpeg-progs kile dvdrtools gpdf gftp-gtk libsane-extras libwxgtk2.4-python wpd2sxw doomlegacy-sdl
5.) Optional, set up ATI binary drivers:
apt-get install fglrx-control fglrx-driver
- Add fglrx to /etc/modules
- load it:
depmod -a
modprobe fglrx
- edit /etc/X11/XF86Config-4 and change "ati" or "radeon" to "fglrx"
- restart X and it should work
6.) Optional, set up lm sensors:
- howto is here:
http://www.ubuntuforums.org/showthread.php?t=2780
- install sensor reading packages:
sudo apt-get install lm-sensors
- find your sensors; run sensors-detect and answer a lot of YES
- questions to probe for sensors. This will generate a list of what you
- need to do to make it work. Do that.
- Note: Instead of /etc/modules.d/local, it's /etc/modules.d/aliases. However,
- the alias is already listed, so we shoudl be fine
- Run sensors to test it. Gkrellm can read the sensors
- config lives in /etc/sensors.conf. This can be used to modify the scales
- and such
7.) Install 802.1x auth thingy
apt-get install xsupplicant
##################### PHASE 1 SET UP SECTION #########################
1.) Set up static IP's (for machines with them)
- edit /etc/network/interfaces, and add lines like:
iface eth0-home inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
2.) Make ssh work:
## For an old machine, use the old keys - you did save /etc, didn't you?
## For a new machine, use the existing keys generated by the distro.
## For both, tweak ssh_config/sshd_config as necessary
- in sshd_config, set:
PermitRootLogin no
PasswordAuthentication yes
- in ssh_config, set:
ForwardX11 yes
ForwardX11Trusted no
- You need to restart this for changes to take effect
/etc/init.d/sshd restart
### Set up /etc/hosts.allow and /etc/hosts.deny for ssh:
- hosts.allow:
----------------
ALL: 127.0.0.1
sshd: ALL
-----------------
- hosts.deny:
----------------
ALL:ALL
-----------------
3.) Add important modules to /etc/modules
vfat
- for machines with 3ware cards
3w-xxxx
4.) Set up nvram stuff for laptop
cd /etc/init.d
cp -a /usr/local/apps/init_scripts/nvram .
sudo update-rc.d nvram defaults
sudo /etc/init.d/nvram start
##################### DOMAIN MEMBER SET UP SECTION #########################
1.) /etc/hosts
- add hosts to /etc/hosts as appropriate
- for machines with static IP's, use that IP and delete it from the localhost
- line
2.) Set up lvm2 (for machines using it)
## For machines with new lvm groups:
- create any partitions you want (I'm using /dev/sda1 here)
emerge lvm2
mkdir /etc/lvm
echo 'devices { filter=["r/cdrom/"] }' > /etc/lvm/lvm.conf
vgscan
pvcreate /dev/sda1
vgcreate vg /dev/sda1
- create bits with
lvcreate -LsizeG -nname vg
- where size is the size and name is the name these are now accessible
- through /dev/vg/name file systems can be made through
mke2fs -j -m0 -v /dev/vg/name
tune2fs -c100 -i0 /dev/vg/name
- 'vgs' can be used to show your volume groups
(sizes and free and all that)
- make mount points, add the bits to /etc/fstab and mount them
## For machines with existing lvm groups:
- generate the vg's
vgscan
- make sure all is okay (pv = physical volume, lv = logical volume)
pvscan
lvscan
- if it looks okay, enable the lv's. For each one reported by lvscan:
lvchange -a y /dev/vg/pathname
- once all are active, do:
vgmknodes
3.) Set up IPSec:
apt-get install ipsec-tools
- set up an /etc/ipsec.conf which should contain sections like:
---------------------------
###### connections of 192.168.1.1 to 192.168.1.2 ######
# AH SAs using 128 bit long keys
add 192.168.1.1 192.168.1.2 ah 0x010 -A hmac-md5
0x8c4708518e279fa02362564358550777;
add 192.168.1.2 192.168.1.1 ah 0x011 -A hmac-md5
0x2e6893cd15b62788e6b0b70261ec4823;
# ESP SAs using 192 bit long keys (168 + 24 parity)
add 192.168.1.1 192.168.1.2 esp 0x012 -E 3des-cbc
0x6f719567a590b91de95bfa460f1576393ae0e6d6b5522c4c;
add 192.168.1.2 192.168.1.1 esp 0x013 -E 3des-cbc
0x814c676ea62123fc1c818ff4270eaf254489fccf540ab24f;
# Security policies
spdadd 192.168.1.1 192.168.1.2 any -P in ipsec
esp/transport//require
ah/transport//require;
spdadd 192.168.1.2 192.168.1.1 any -P out ipsec
esp/transport//require
ah/transport//require;
---------------------------
- do this for each to/from pair. This needs to be set up on each side
- of the connection, and you want to flip the in/out section of the
- policy on one side.
- to generate the AH key, do:
dd if=/dev/random count=16 bs=1| xxd -ps
- and take the output and use it for the key. Remember to stick the 0x
- in front of it
- to generate the ESP key, do:
dd if=/dev/random count=24 bs=1| xxd -ps
- and take the output and use it for the key. Remember to stick the 0x
- in front of it
- Then copy over my custom ipsec to /etc/init.d
cp -a /usr/local/apps/init_scripts/ipsec /etc/init.d
- add to normal startup and start. We want it to start right after
- networking, which comes up in order 40 in runlevel S
update-rc.d ipsec start 41 S .
/etc/init.d/ipsec start
4.) Set up NIS server:
### Add to hosts:
- Make sure the server and all clients are in /etc/hosts. This means things
- will still work if DNS dies or anything else bad happens.
### Add to hosts.allow
- hosts.allow:
----------------
portmap ypserv ypbind : <list of IP ADDRESSES, see note below>
-----------------
- Note: This needs to be a list of IP's for each machine needing to
- connect to the server, which is:
- 1.) the machine itself
- 2.) any NIS/NFS client connecting to it.
### Get the bits you need. When asked, enter the name of your domain:
apt-get install nis
### Set things up:
- fix portmap; edit /etc/default/portmap and set:
ARGS=
- edit /etc/default/nis, and change the following:
NISSERVER=master
- edit /etc/yp.conf and add the line:
domain fnord server yt
- edit /etc/defaultdomain and add the line:
fnord
- (this is not necessary if you set it up when the package was installed)
- edit /var/yp/Makefile set it up. It is well commented.
- NOTES:
- MINGID should be set to 1 in order to propagate the groups (cdrom,
- floppy, games, etc) correctly on all machines.
- All I changed was the MINGID, the rest was fine
- edit /etc/ypserv.securenets and add lines to restrict to domain
- members. I use lines like:
host 192.168.1.1
host 192.168.1.3
- Make sure to comment out the 0.0.0.0 line
- To build the DB for the first time, run:
/usr/lib/yp/ypinit -m
- and follow the instructions (the one server is fine)
- This will throw some errors. It's okay.
- restart portmap and nis
/etc/init.d/portmap restart
/etc/init.d/nis restart
- NOTE: I had some problems with portmap exiting correctly on my box, I had
- to kill -9 it...
- if you change people's passwords or something, do
make -C /var/yp
5.) Set up NIS client:
### A note about administration:
- Since there is no root user, make sure that whomever you want to be
- able to admin the machine is in /etc/sudoers on the client
- machine. It is also a good idea to have those users as local users on the
- machine, with the SAME UID as is shared over NIS.
### Add to hosts:
- Make sure the server is in /etc/hosts. This means things
- will still work if DNS dies or anything else bad happens.
### Get the bits you need. When asked, enter the name of your domain:
apt-get install nis
### Set things up:
- edit /etc/nsswitch.conf and change the lines to match:
-----------------
passwd: files nis
shadow: files nis
group: files nis
-----------------
- edit /etc/yp.conf and add the line:
domain fnord server yt
- edit /etc/defaultdomain and add the line:
fnord
- restart nis:
/etc/init.d/nis restart
- NOTE: sshd will have to be restarted to use the new authentication
- scheme
/etc/init.d/sshd restart
6.) Set up NFS server:
### Add to netgroups:
- Edit /etc/netgroup and add a line like:
boxen (yt,,) (case,,)
### Add to hosts.allow:
------------
portmap mountd nfsd statd lockd: <list of machines, see note below>
(you want to add rquotad as well, if you use it)
------------
- NOTE: The easiest way to do this is to just put this on the same line
- as your portmap
### Get the bits you need:
apt-get install nfs-common nfs-kernel-server
### Set things up:
- edit /etc/exports and add shares, like:
----------
/home @boxen(rw,sync)
/pub @boxen(rw,sync)
/usr/local @boxen(rw,sync)
----------
- Then do:
exportfs -ra
- Restart it:
/etc/init.d/nfs-kernel-server restart
7.) Set up NFS client:
- in /etc/fstab
# device mountpoint fs-type options dump fsckorder
yt:/dir /mntpoint nfs rw,hard,intr 0 0
- Make the mount points
- Mount them with:
mount -a
##################### PHASE 2 SET UP SECTION #########################
1.) bash
cd /etc
mv bash.bashrc bash.bashrc.orig
mv profile profile.orig
mv inputrc inputrc.orig
cp -a /usr/local/apps/bash/bash.bashrc .
cp -a /usr/local/apps/bash/profile .
cp -a /usr/local/apps/bash/inputrc .
2.) emacs:
cd /etc/emacs
mv site-start.el site-start.el.old
ln -s /usr/local/apps/emacs/site-start.el .
3.) bump to better kernel (as appropriate)
apt-get install linux-686
apt-get install linux-686-smp
apt-get install linux-k7-smp
4.) Set up fonts - edit /etc/fonts/local.conf and uncomment the line:
<dir>/usr/X11R6/lib/X11/fonts</dir>
(you need to restart ALL X (including GDM) for the change to take effect)
5.) Configure bootloader (GRUB)
- edit /boot/grub/menu.lst
- make sure hiddenmenu is commented out
- uncomment the color line
- set the timeout to 5
- set up password by adding the line:
password --md5 PASSWORD
- and PASSWORD is the output from:
grub-md5-crypt
- then do:
chmod 600 /boot/grub/menu.lst
- so that folks can't read the password
6.) thinkpad stuff
apt-get install tpb
chmod o+r /dev/nvram
7.) gimp:
cd /usr/share/gimp/2.0/scripts
ln -s /usr/local/apps/gimp/scripts/* .
8.) latex
cd /usr/share/texmf/tex/latex
ln -s /usr/local/apps/latex/local .
- then run texconfig and rebuild the ls-R database
9.) gkrellm skins:
cd /usr/share
mkdir gkrellm2
cd gkrellm2
ln -s /usr/local/apps/gkrellm2/GKrellM-skins/ themes
10.) Make portsentry work
cd /etc/portsentry
mkdir old
mv * old
cp -a /usr/local/apps/portsentry/* /etc/portsentry/.
- edit /etc/default/portsentry and change the modes to:
TCP_MODE="atcp"
UDP_MODE="audp"
- restart it
/etc/init.d/portsentry restart
11.) set up digital camera
mkdir /media/card
- add the following to /etc/fstab
/dev/sda1 /media/card auto noauto,user 0 0
12.) set up scanner:
- edit /etc/sane.d/dll.conf and uncomment the niash driver
13.) set up ssmtp
- edit /etc/ssmtp/ssmtp.conf
- set the mailhub=localhost:2525
(this will only work for folks with a tunnel like mine)
- set rewriteDomain=mattcaron.net
14.) chrony (ntp)
## for standalone (laptop):
cd /etc/chrony
mv chrony.conf chrony.conf.orig
mv chrony.keys chrony.keys.orig
cp -a /usr/local/apps/ntp/chrony/chrony.conf.standalone ./chrony.conf
cp -a /usr/local/apps/ntp/chrony/chrony.keys.standalone ./chrony.keys
## for server:
- add ntpd to hosts.allow list
cd /etc/chrony
mkdir old
mv * old/.
cp -a /usr/local/apps/ntp/chrony/chrony.conf.server ./chrony.conf
cp -a /usr/local/apps/ntp/chrony/chrony.keys.server ./chrony.keys
## for client
cd /etc/chrony
mkdir old
mv * old/.
cp -a /usr/local/apps/ntp/chrony/chrony.conf.client ./chrony.conf
cp -a /usr/local/apps/ntp/chrony/chrony.keys.client ./chrony.keys
15.) set up messages
- edit /etc/issue to have a nice message
rm issue.net
ln -s issue issue.net
16.) Set up hdparm
- edit /etc/hdparm.conf and add these lines:
# Generic hard drive template, use for all ide hard disks
/dev/hda {
mult_sect_io = 16
interrupt_unmask = on
dma = on
io32_support = 1
}
# Generic optical drive template, use for all ide cdrom disks
/dev/hdc {
interrupt_unmask = on
dma = on
io32_support = 1
}
17.) GDM
- Configure it safely with gdmconfig's "security" tab
18.) cups
- edit /etc/cups/cupsd.conf and set:
RunAsUser No
- so that cups-pdf works
- Also, comment out the line:
Listen 127.0.0.1:631
- and uncomment the line:
Port 631
- and set:
Browsing On
- so that cups works as it should
- add printers with gnome-cups-manager
- don't forget to add pdf printer support. It's a raw queue.
- prints go into ~/cups-pdf/
- You can't change the names in gnome-cups-manager, so edit
- /etc/cups/printers.conf to change the name
- in /etc/cups/cupsd.conf, if you want to share printers, do:
- in the <Location /printers> section, do:
Allow From 192.168.1.*
- and to have it broadcast, do:
Browsing On
BrowseAddress @LOCAL
19.) Remove gdm on servers to X doesn't start:
update-rc.d -f gdm remove
20.) Set up samba:
apt-get install samba
sudo cp -a smb.conf smb.conf.old
sudo cp -a /usr/local/apps/samba/smb.conf.yt ./smb.conf
/etc/init.d/samba restart
21.) Set up any periodic cron jobs
- edit /etc/crontab and add the job
22.) Set up ieee1394 support for machines w/ firewire support
- Info:
http://www.ubuntulinux.org/wiki/HowToCaptureDigitalVideo
- Add the following to /etc/init.d/bootmisc.sh, right at the end before
- the exit:
mknod /dev/raw1394 c 171 0
chown root:video /dev/raw1394
chmod 660 /dev/raw1394
- People have to be in the video group to do video things...
##################### OTHER MISC NOTES SECTION #########################
1.) set up public key authentication
- (note: this assumes that you don't already have an
- authorized_keys file on the remote host. If you do you'll
- need to add the contents of id_dsa.pub to the end of it,
- rather than replacing it with id_dsa.pub as I do below)
- Generate a key:
ssh-keygen -t dsa -f ~/.ssh/identity
- (don't set a passphrase for passwordless auth)
- SSH to your remote host, and add the identity.pub to that
- machine's ~/.ssh/authorized_keys (or just copy it)
2.) to set DVD region code (only necessary once, per drive, EVER!!!)
- (indeed, most of them can only be set a few times before, they're
- locked forever. Be honest)
apt-get install regionset
- MAKE SURE THERE IS A VIDEO DVD IN THE DRIVE and (as root) do:
regionset
- set it to region 1, and use the mask it calculates. It will
- probably even tell you how many changes you have left
3.) Default browser/mail/etc
- can set default browser by doing:
gnome-control-center
- then going to Advanced -> Preferred Applications
4.) Group admin
gpasswd is used to administer /etc/group