-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.ubuntu.feisty
838 lines (588 loc) · 25.3 KB
/
install.ubuntu.feisty
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
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
Install Crib Sheet for Ubuntu 7.04 (Feisty)
NOTE - this is based on the Dapper->Edgy install and may not be 100% accurate.
##################### UPGRADE SECTION #########################
1.) Make sure you have the following installed
sudo apt-get install ubuntu-desktop ubuntu-minimal ubuntu-standard
(optional)
sudo apt-get install kubuntu-desktop xubuntu-desktop
2.) Upgrading:
sudo update-manager
- then click "Upgrade" where it says "new distribution is available"
- It crashed on me. If it does, run:
dpkg --configure -a
3.) Remove old, incompatible, and non-optimal stuff:
sudo apt-get autoremove
sudo apt-get remove linux-image-2.6.17-10-generic \
linux-restricted-modules-2.6.17-10-generic \
linux-headers-2.6.17-10 \
linux-headers.2.6.17-10-generic
sudo apt-get remove libdvdcss2 w32codecs googleearth
##################### BASE INSTALL SECTION #########################
1.) Boot the install cd and follow instructions to do the base install.
Set up machine as desired. Fairly self-explanatory.
## NOTE: All this stuff assumes that you're root, such as with "sudo -s"
2.) After machine is up, edit /etc/apt/sources.list and do the following:
a.) Uncomment the two "feisty universe" lines
b.) Uncomment the two "feisty-backports" lines
c.) Uncomment the two "feisty-security universe lines"
d.) Add the following lines:
# Add multiverse repos
deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse
3.) add proprietary/restricted things
a.) Do:
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
b.) Add to /etc/sources.list
# mediabuntu stuff (libdvdcss, etc)
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free
4.) Do:
apt-get update
apt-get dist-upgrade
5.) Install lots of things - all machines
apt-get install nmap amap gif2png cups-pdf units traceroute dar par2 emacs emacs-goodies-el tofrodos openssh-server gcc libc6-dev samba smbfs apt-show-versions symlinks sysstat ifstat dstat ssmtp mailx
6.) Install lots of core desktop things - desktops only
apt-get install ubuntu-desktop kubuntu-desktop xubuntu-desktop
7.) Install more things - desktops only
apt-get install logjam gkrellm gkrellm-alltraxclock2 gkrellmapcupsd gkrellm-bfm gkrellmd gkrellm-hdplop gkrellm-ibam gkrellmitime gkrellm-leds gkrellm-mailwatch gkrellmms gkrellmoon gkrellm-radio gkrellm-reminder gkrellm-snmp gkrellmss gkrellm-volume gkrellmwho2 gkrellmwireless gkrellm-x86info xmms smpeg-xmms xmms-adplug xmms-alarm xmms-arts xmms-blursk xmms-bumpscope xmms-cdread xmms-coverviewer xmms-crossfade xmms-dbmix xmms-defx xmms-festalon xmms-find xmms-finespectrum xmms-flac xmms-fmradio xmms-goodnight xmms-goom xmms-infinity xmms-infopipe xmms-iris xmms-itouch xmms-jack xmms-jackasyn xmms-jess xmms-kde xmms-kjofol xmms-kjofol-skins xmms-ladspa xmms-lirc xmms-liveice xmms-mad xmms-modplug xmms-mp4 xmms-mpg123-ja xmms-msa xmms-musepack xmms-oggre xmms-openspc xmms-osd-plugin xmms-qbble xmms-rplay xmms-scrobbler xmms-shell xmms-sid xmms-singit xmms-skins xmms-stats xmms-status-plugin xmms-synaesthesia xmms-volnorm xmms-wmdiscotux xmms-xf86audio xmms-xmmplayer xmp-xmms logjam-xmms gxmms-xmms libsane-extras scribus scribus-template xfce4 xfce4-goodies xfce4-genmon-plugin xfce4-minicmd-plugin xfce4-sensors-plugin xfce4-theme-brushedchrome xfce4-trigger-launcher xffm4 gaim-autoprofile gaim-encryption gaim-extendedprefs gaim-guifications gaim-hotkeys gaim-irchelper gaim-otr gaim-themes gaim-thinklight gaim-xmms-remote tetex-base tetex-extra latex2html prosper gnuplot gnuplot-mode gxine xine-ui gxineplugin totem-xine libxine-extracodecs totem-xine-firefox-plugin gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gl gstreamer0.10-gnonlin gstreamer0.10-pitfdll gv grip gdm-themes mozilla-thunderbird-enigmail mozilla-thunderbird-typeaheadfind mozilla-thunderbird-inspector thunderbird-quickfile firefox-themes-ubuntu gpdf gftp-gtk gimp-data-extras gimp-dcraw gimp-dimage-color gimp-gap gimp-svg gimp-texturize wmaker wmakerconf wmaker-data aterm unison unison-gtk lame lame-extras xfig xfig-libs kino kinoplus dvgrab msttcorefonts audacity portsentry xnest wpd2sxw digikam digikamimageplugins kipi-plugins meld pptp-linux ipodder easytag f-spot banshee banshee-daap vnc4-common vnc4server xvnc4viewer bittornado bittornado-gui bittorrent-gui ipsec-tools wine ntp ntp-server brag lincity-ng kcalc xpdf skippy flashplugin-nonfree beagle pitivi exiv2 acroread acroread-plugins gnusound ardour-gtk blop caps cmt swh-plugins tap-plugins vcf-plugins xmms-ladspa make g++ unrar autossh php-mode jokosher glabels inkscape gpaint gtk-gnutella stellarium openoffice.org openoffice.org-filter-binfilter openoffice.org-gcj openoffice.org-gnome openoffice.org-gtk openoffice.org-help-en-us openoffice.org-kde openoffice.org-thesaurus-en-us ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video ubuntustudiolauncher wormux wormux-data dosbox pmidi squashfs-tools texlive-fonts-extra transfig texlive-latex-extra texlive git-completion git-core git-doc git-gui gitk xmlstarlet sun-java6-bin sun-java6-demo sun-java6-fonts sun-java6-javadb sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-source
8.) Install some games
apt-get install cgoban gnugo penguin-command xfrisk xbill prboom xmess-x xmame-x xmame-sdl xmame-tools joystick jscalibrator stratagus-gl wesnoth-all boson craft
9.) Install some laptop stuff
apt-get install network-manager network-manager-gnome network-manager-pptp
10.) Add proprietary things
apt-get install libdvdcss2 w32codecs googleearth
11.) For work machines, set up subversion
sudo apt-get install esvn kdesvn subversion
12.) For machines doing mono work:
apt-get install mono mono-devel monodevelop monodevelop-boo monodevelop-java monodevelop-nunit monodevelop-query monodevelop-versioncontrol monodoc glade
13.) (thinkpad laptop only) Scale down the CPU so it stops overheating:
- edit /etc/laptop-mode/laptop-mode.conf and make the following changes:
CONTROL_CPU_FREQUENCY=1
LM_AC_CPU_MAXFREQ=1200000
NOLM_AC_CPU_MAXFREQ=1200000
NOLM_AC_CPU_GOVERNOR=ondemand
- then do:
sudo /etc/init.d/laptop-mode restart
14.) Set up java6:
sudo update-alternatives --config java
(select java 6)
##################### PHASE 1 SET UP SECTION #########################
1.) Set up static IP's (for machines with them)
- edit /etc/network/interfaces, and add lines like:
auto iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.254
- Comment out any extra useless lines
- Reboot
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
- in ssh_config, set:
ForwardX11 yes
ForwardX11Trusted yes
- You need to restart this for changes to take effect
/etc/init.d/ssh restart
3.) Set up /etc/hosts.allow and /etc/hosts.deny:
- hosts.allow:
----------------
ALL: 127.0.0.1
sshd: ALL
ALL: 10.0.9.0/24
-----------------
- hosts.deny:
----------------
ALL:ALL
-----------------
##################### PHASE 2 SET UP SECTION #########################
1.) bash
- add the following to /etc/bash.bashrc
if [ -f /usr/local/apps/bash/bash.bashrc ]; then
. /usr/local/apps/bash/bash.bashrc
fi
(this assumes that you've grabbed /usr/local/apps)
2.) emacs
- add the following to /etc/emacs/site-start.el
(load "/usr/local/apps/emacs/site-start.el")
Set it to use emacs21 (indenting is bad in emacs22)
sudo update-alternatives --config emacs
3.) 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
4.) gimp:
cd /usr/share/gimp/2.0/scripts
ln -s /usr/local/apps/gimp/scripts/* .
5.) latex
cd /usr/share/texmf/tex/latex
ln -s /usr/local/apps/latex/local .
- then run texconfig and select "rehash"
- Also, set the paper to US
6.) gkrellm skins:
cd /usr/share
mkdir gkrellm2
cd gkrellm2
ln -s /usr/local/apps/gkrellm2/GKrellM-skins/ themes
7.) Make portsentry work
- edit /etc/portsentry/portsentry.ignore.static and add the lines:
192.168.9.0/24
10.0.9.0/24
^- this last one is for multihomed hosts only
- edit /etc/default/portsentry and change the modes to:
TCP_MODE="atcp"
UDP_MODE="audp"
- restart it
/etc/init.d/portsentry restart
8.) set up smbmount
chmod u+s /usr/bin/smbmnt
chmod u+s /usr/bin/smbumount
9.) ntpd
## for standalone (laptop):
- do nothing
## for server:
- add ntpd to hosts.allow list
ntpd: 192.168.9.0/24
## for client
- edit /etc/ntpd.conf and comment out the line:
server ntp.ubuntu.com
- and add the line:
server 192.168.9.1
10.) set up messages
- edit /etc/issue to have a nice message
rm issue.net
ln -s issue issue.net
11.) GDM
- Configure it safely with gdmsetup's "security" tab, turn off the annoying
- sounds, don't show the actions menu, etc.
12.) cups
- add printers with gnome-cups-manager
- don't forget to add pdf printer support. It's a Generic PostScript Printer
- prints go into ~/PDF/
- Under "Global Settings" check "Detect Lan Printers"
- If you want to share printers, then
- Under "Global Settings" check "Share Lan Printers"
13.) Remove gdm on servers to X doesn't start:
update-rc.d -f gdm remove
14.) Set up samba:
cd /etc/samba
sudo cp -a smb.conf smb.conf.old
sudo cp -a /usr/local/apps/samba/smb.conf.machine_name ./smb.conf
/etc/init.d/samba restart
- Remember to turn it off on places you don't want it.
sudo update-rc.d -f samba remove
15.) Set up paper size
- edit /etc/papersize
- set it to: letter
16.) Install doom wads
cd /usr/share/games/doom
sudo rm doom2.wad
sudo ln -s /usr/share/games/freedoom/doom2.wad ./doom2f.wad
sudo ln -s /usr/local/games/games/datafiles/doom/* .
17.) Set up the automagic ssh tunnel:
sudo cp /usr/local/apps/autossh/mail_tunnel /etc/init.d/.
sudo update-rc.d mail_tunnel start 99 2 6 S .
sudo /etc/init.d/mail_tunnel start
18.) Install munin-node on all servers
sudo apt-get install munin-node
- allow the monitoring server to connect, edit /etc/munin-node.conf
allow ^192\.168\.9\.1$
allow ^10\.0\.9\.1$
- set them to monitor eth1 (if applicable)
cd /etc/munin/plugins
sudo cp -d if_err_eth0 if_err_eth1
sudo cp -d if_eth0 if_eth1
- restart munin
sudo /etc/init.d/munin-node restart
19.) Install munin on monitoring server
sudo apt-get install munin
(remember, it needs apache installed too)
- edit the config file to hit all machines
- info:
http://www.howtoforge.com/server_monitoring_monit_munin
20.) Set up /etc/iftab to force assignments of interface to MAC address
eth0 mac 00:02:b3:98:df:65 arp 1
eth1 mac 00:e0:81:20:90:f6 arp 1
21.) Install BOINC on appropriate machines
sudo apt-get install boinc-client boinc-manager
- Set it up using boincmgr
- Follow instructions; it's easy.
- You can see things in boincmgr (graphics, etc)
22.) set up rsnapshot
- edit /etc/cron.d and set the stuff to work like:
# min hour day month week
0 */4 * * * root /usr/bin/rsnapshot hourly
30 3 * * * root /usr/bin/rsnapshot daily
0 3 * * 1 root /usr/bin/rsnapshot weekly
30 2 1 * * root /usr/bin/rsnapshot monthly
- (this assumes that rsnapshot is going to make a backup every 4
- hours, and therefore hourly is set to something like 6.. I set up the
- intervals to be):
interval hourly 6
interval daily 7
interval weekly 4
interval monthly 6
23.) set up ssmtp
- edit /etc/ssmtp/ssmtp.conf
- Set it like:
- set [email protected]
- set the mailhub=mail63.csoft.net
##################### 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
5.) you can dump the list of people in the samba db's by doing:
sudo tdbdump /var/lib/samba/passdb.tdb
- for what good it does you
6.) dpkg-reconfigure is useful for reconfiguring stuff
example:
sudo dpkg-reconfigure -phigh xserver-xorg
7.) update-alternatives is useful when playing with different
alternative things - example:
sudo update-alternatives --config usplash-artwork.so
- Of course, in the above case, you need to rebuild the initramfs to make
it all work:
sudo dpkg-reconfigure linux-image-`uname -r`
8.) Clean out cache periodically
sudo apt-get autoclean
- clean out stale packages
sudo apt-get autoremove
9.) Set up apache
sudo apt-get install apache2 php5 php5-cli php-pear php-db php5-mysql php5-mcrypt
- edit /etc/apache2/mods-available/userdir.conf and add "Indexes" to the
- AllowOverride line, so that it looks like:
AllowOverride FileInfo AuthConfig Limit Indexes
- edit /etc/apache2/ports.conf and change:
Listen 80
- to
Listen 127.0.0.1:80
/etc/init.d/apache2 restart
10.) Beagle
- add /usr/bin/beagled to autostarted applications
- /usr/bin/beagle-search runs the query tool
11.) Set up wine
a.) Add key:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
b.) Add wine to /etc/apt/sources.list
# add wine repos
deb http://wine.budgetdedicated.com/apt feisty main
sudo apt-get update
sudo apt-get dist-upgrade
############ OLD #####################
XX.) Set up IPSec:
apt-get install ipsec-tools
- set up an /etc/ipsec-tools.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
- Change the permissions on the file to make it not world readable:
chmod 700 ipsec-tools.conf
- Fix stop order
sudo update-rc.d -f setkey remove
sudo update-rc.d setkey start 37 0 6 S .
XX.) Optional, set up ATI binary drivers:
IMPORTANT NOTE - this BREAKS software suspend in hoary!!!!
ADDENDUM - and breezy!
ADDENDUM - since there is opengl support in dapper, I didn't even try....
apt-get install xorg-driver-fglrx fglrx-control
- 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
XX.) Set up ieee1394 support for machines w/ firewire support
- MC - DAPPER note - not sure if this is necessary, putting off
- 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...
XX.) xplanet
xplanet -transparency -origin "moon" -projection "orthographic"
More info (clouds, etc) here:
http://www.number.ch/wiki/index.php/XplanetClouds
This seems to be done automagically....
XX.) 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
- run the mkdev.sh script (look in /usr/local/apps/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.
- Reboot
- 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
This seems to be done automagically....
XX.) Add important modules to /etc/modules
vfat
- for machines with 3ware cards
3w-xxxx
XX.) mysql and phpmyadmin
sudo apt-get install mysql-server-5.0 phpmyadmin
TODO - try ATI drivers w/ the new driver manager
-- Beryl/compiz?
-- Removed Beryl and install feisty version?
XX.) Set up Xen
https://wiki.ubuntu.com/XenOnEdgy
- DOES NOT WORK ON LAPTOPS (no ACPI support)
(a) install stuff
sudo apt-get install xen-hypervisor-3.0-i386 xen-image-xen0-2.6.17-5-generic-xen0 xen-utils-3.0
sudo mkinitramfs -o /boot/xen0-linux-2.6.17-5-generic-xen0.initrd.img 2.6.17-5-generic-xen0
(b) edit /etc/initramfs-tools/hooks/xensupport and put in:
#!/bin/sh -e
. /usr/share/initramfs-tools/hook-functions
force_load xenblk
- then
sudo chmod u+x /etc/initramfs-tools/hooks/xensupport
(c) add the following to /boot/grub/menu.lst, above the automagic section
title XEN/2.6.17-5
root (hd0,1)
kernel /xen-3.0-i386.gz
module /xen0-linux-2.6.17-5-generic-xen0 root=UUID=8a7e0bad-8914-4547-a1ba-b51c8c7ce22f ro quiet splash
module /xen0-linux-2.6.17-5-generic-xen0.initrd.img
(d) edit /etc/xen/xend-config.sxp and comment out:
(network-script network-dummy)
- and add:
(network-script network-bridge)
(f) Reboot
XX.) Tar over an ssh connection
tar -zvcf - ./hda1 | ssh [email protected] "cat - > jim_backup.tar.bz2"
XX.) Clear out symlinks
sudo symlinks -rd .
##################### 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
- If using a multihomed host, you should probably use the private IP
for the canonical hostname, so that NFSv4 clientaddr lookups are
automatically resolved.
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 -c0 -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
## to resise:
- lvdisplay and vgdisplay are useful to look at things
lvextend /dev/vg/home -l+number_of_extents
- or
lvextend /dev/vg/home -L+sizeMGK
- will resize
- resize2fs to resize the fs...
3.) 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.
### Get the bits you need. When asked, enter the name of your domain:
apt-get install nis
### Set things up:
- 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.9.1
host 192.168.9.6
- 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 stopping/releasing the IP
- address. Try kill -9ing it. If that doesn't work, try rebooting.
- if you change people's passwords or something, do
make -C /var/yp
- To test do:
ypcat passwd
4.) 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/passwd and add the following line at the end:
+::::::
- edit /etc/group and add the following line at the end:
+:::
- edit /etc/shadow and add the following line at the end:
+::::::::
- 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
5.) Set up NFS server:
https://help.ubuntu.com/community/NFSv4Howto
### Get the bits you need:
apt-get install nfs-common nfs-kernel-server
### Create the base share directory and mount points
mkdir /export
mkdir /export/home
mkdir /export/pub
mkdir /export/usr_local
### Edit fstab and add the lines to bind to this directory
/home /export/home none bind 0 0
/pub /export/pub none bind 0 0
/usr/local /export/usr_local none bind 0 0
# mount those
mount -a
### Add to netgroups:
- Edit /etc/netgroup and add a line like:
boxen (yt,,) (case,,)
- Do:
make -C /var/yp
### edit /etc/exports and add shares, like:
/export @boxen(ro,fsid=0,sync)
/export/home @boxen(rw,nohide,sync)
/export/pub @boxen(rw,nohide,sync)
/export/usr_local @boxen(rw,nohide,sync)
- Then do:
exportfs -ra
- Restart it:
/etc/init.d/nfs-kernel-server restart
- because of this bug:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/87382
Change /etc/init.d/nfs-common to be like this:
log_progress_msg "idmapd"
start-stop-daemon --start --oknodo --quiet \
--pidfile /var/run/rpc.idmapd.pid \
--make-pidfile --exec /usr/sbin/rpc.idmapd
and restart it:
/etc/init.d/nfs-common restart
6.) Set up NFS client:
- in /etc/fstab
# device mountpoint fs-type options dump fsckorder
yt:/home /home nfs4 rw,hard,intr,rsize=32768,wsize=32768 \ 0 0
yt:/pub /pub nfs4 rw,hard,intr,rsize=32768,wsize=32768 \ 0 0
yt:/usr_local /usr/local nfs4 rw,hard,intr,rsize=32768,wsize=32768 \ 0 0
- Make the mount points
- Mount them with:
mount -a
- because of this bug:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/87382
Change /etc/init.d/nfs-common to be like this:
log_progress_msg "idmapd"
start-stop-daemon --start --oknodo --quiet \
--pidfile /var/run/rpc.idmapd.pid \
--make-pidfile --exec /usr/sbin/rpc.idmapd
and restart it:
/etc/init.d/nfs-common restart
- because of this bug:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/45842
- edit /etc/init.d/mountall.sh and comment out the mount lines and make them:
mount -a
sudo update-rc.d -f mountall.sh remove
sudo update-rc.d mountall.sh start 35 2 S .