Sysadmin:AddComputer: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Skylar (talk | contribs)
No edit summary
Craigje (talk | contribs)
mNo edit summary
 
(19 intermediate revisions by 7 users not shown)
Line 1: Line 1:
These are the changes that need to be made if a computer is to be added to the CS network, follow these steps.
Below are instructions for adding a machine to the CS or Cluster network.


# Add the machine's hostname and IP address to /etc/namedb/master/cs.zone (or public.zone for the public network). Make sure to update the serial number at the top of the file, and to end hostnames with a period so that they are FQDN. Also make sure to use an IP address that is not already  taken.
Note that if you're ever confused, you can look at another machine and do some "comparative anatomy" to see how certain files should be edited.
# Add the machine's reverse record to /etc/namedb/master/159.28.230.zone (or 159.28.231.zone for the public zone). The same rules as above apply.
 
# Restart DNS by sending a SIGHUP to the named process, or using the <tt>rndc reload</tt> command.
== Install a base OS ==
# Add the machine to /usr/local/etc/dhcpd.conf. You will need its Ethernet MAC address for this. Make sure to terminate each field with a semicolon.
 
# Restart dhcpd by killing it and restarting it ''with the same command-line options''. There should be a <tt>/usr/local/etc/rc.d/isc-dhcpd.sh</tt> script now that we've upgraded to FreeBSD 5.
Generally, CS machines run Debian and cluster machines run CentOS.
# Copy dhcpd.conf to quarkprime, and restart dhcpd there as well.
 
== Bring up at least one network interface ==
 
Depending on the OS you install, there's a strong possibility the network interface won't be brought up by default.
 
== Configure DNS and DHCP ==
 
See [[Sysadmin:DNS & DHCP|this page]] for how to configure the DNS and DHCP server to recognize the machine.
 
Locally, you'll need to edit /etc/resolv.conf (to, e.g., specify your DNS nameserver), the config file for your particular network interface (e.g. on CentOS you may care about /etc/sysconfig/network-scripts/ifcfg-enp1s0f0), and /etc/hosts (to set your own hostname).
 
== Configure LDAP ==
 
Most likely, new servers will be connected to our LDAP database for user account sharing purposes.
 
== Install the base software kit ==
 
Go [[Base software kit|here for that]].

Latest revision as of 16:27, 1 August 2019

Below are instructions for adding a machine to the CS or Cluster network.

Note that if you're ever confused, you can look at another machine and do some "comparative anatomy" to see how certain files should be edited.

Install a base OS

Generally, CS machines run Debian and cluster machines run CentOS.

Bring up at least one network interface

Depending on the OS you install, there's a strong possibility the network interface won't be brought up by default.

Configure DNS and DHCP

See this page for how to configure the DNS and DHCP server to recognize the machine.

Locally, you'll need to edit /etc/resolv.conf (to, e.g., specify your DNS nameserver), the config file for your particular network interface (e.g. on CentOS you may care about /etc/sysconfig/network-scripts/ifcfg-enp1s0f0), and /etc/hosts (to set your own hostname).

Configure LDAP

Most likely, new servers will be connected to our LDAP database for user account sharing purposes.

Install the base software kit

Go here for that.