Ubuntu server install » History » Version 1
Joseph Foley, 2015-09-05 03:04
1 | 1 | Joseph Foley | h1. Ubuntu server install |
---|---|---|---|
2 | |||
3 | These directions are mostly for an Ubuntu install (12.04) |
||
4 | |||
5 | h2. PXE config |
||
6 | |||
7 | # Make sure that DHCP has addresses free to give to the new machine! |
||
8 | # Pick a hostname from our list at [[hosts]] |
||
9 | # Update the entry to reflect that you are using it |
||
10 | ## If it has to be renamed, we need to update the reverse resolution records and send them to IT |
||
11 | # Login to @dhcp.dev.ru.is@ |
||
12 | # Become root |
||
13 | # Add an entry in @/etc/dhcp/dhcp.conf@ before the line that says "# PUT DEVNET HOSTS ABOVE THIS LINE". Replace the things starting with my with the appropriate information. An ethernet address is a MAC address. |
||
14 | <pre> |
||
15 | host myhostname { |
||
16 | hardware ethernet myethernetaddress; |
||
17 | fixed-adress myhostname; |
||
18 | } |
||
19 | </pre> |
||
20 | # If you need any aliases, add CNAMES to the /var/named/dev.ru.is.zone file |
||
21 | # Restart dhcp |
||
22 | <pre>service dhcpd restart</pre> |
||
23 | # Reload named zone files |
||
24 | <pre>rndc reload</pre> |
||
25 | # On the machine to be installed, make sure that PXE boot is enabled and is high on the priority list |
||
26 | ## (or you can choose it manually on the boot menu if you hit F12 usually) |
||
27 | ## The setup menu also often lets you know the MAC address |
||
28 | |||
29 | h2. Partitions |
||
30 | |||
31 | Partitioning is a rather personal thing. These are my guidelines. If the machine has hardware raid, you should set the system partition on a mirroring set of 18GB SCSI3 drives. |
||
32 | |||
33 | * /boot partition ext2, 256MB. Standard partion, NOT LVM |
||
34 | * LVM for the rest with name same as the hostname |
||
35 | ** /var/cache/openafs ext3 1080MB (which is 5% bigger than 1024) labeled afscache |
||
36 | ** swap swap (same as memory or doubled) |
||
37 | ** / ext4 (the rest) labeled system |
||
38 | |||
39 | You may want to make a separate /var partition, because it often fills up with logs. |
||
40 | |||
41 | h2. Kerberos/AFS |
||
42 | |||
43 | Follow the directions at https://samvinna.ru.is/projects/projects/devnet-documentation/wiki/AFS_Client_Installation |
||
44 | |||
45 | Main points: |
||
46 | # Install packages |
||
47 | <pre> |
||
48 | sudo apt-get install krb5-auth-dialog krb5-user krb5-clients libpam-ccreds libpam-krb5 build-essential dkms linux-headers-`uname -r` openafs-modules-dkms openafs-{client,krb5} libpam-afs-session |
||
49 | </pre> |
||
50 | # Start up AFS |
||
51 | <pre>sudo service openafs-client start</pre> |
||
52 | # Grab the /etc/krb5.conf from afs and install it |
||
53 | # setup ssh and sshd to use GSSAPI and delegate credentials |
||
54 | # use kadmin to install a krb5.keytab for the host |
||
55 | # put your principals into /root/.k5login to allow you to access as root remotely |
||
56 | # install denyhosts |
||
57 | # MORE TO COME |