Sysadmin:AddComputer: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Craigje (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by 3 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.


== Software ==
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.
Make sure the following packages installed (through ports or through apt):
* bash
* ssh
* sudo


=== SSH and Sudo ===
== Install a base OS ==
* Set up sudo to allow members of the admin group to become root (or, better yet, individual users).
* Disable root logins via SSH.


== DNS and DHCP ==
Generally, CS machines run Debian and cluster machines run CentOS.
=== DNS ===
tinydns is now on pion <br />
ssh tinydns.cs.earlham.edu<br />
Find an available IP in /service/tinydns/root/data<br />
Add a line to that file:
=<hostname>.cs.earlham.edu:<ip>:86400
cd /service/tinydns/root/ && make


=== DHCP ===
== Bring up at least one network interface ==
* Add the machine to proton:/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 running the command /etc/init.d/dhcp3-server restart


== Email ==
Depending on the OS you install, there's a strong possibility the network interface won't be brought up by default.
* In /etc/aliases or similar, set the outgoing e-mail to root@cs.earlham.edu.  On quark, this automatically forwards to the admin list. We send it to root instead so that we can have "emergency moderation" and stop it going to the list if need be. Or, in case we need to stop going to the list because mailman is down.
 
== 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.