Sysadmin:AddComputer: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Amweeden06 (talk | contribs)
Amweeden06 (talk | contribs)
No edit summary
Line 3: Line 3:
== Software ==
== Software ==
Make sure the following packages installed (through ports or through apt):
Make sure the following packages installed (through ports or through apt):
* vim
* nano
* bash
* bash
* ssh
* ssh
Line 10: Line 8:


=== SSH and Sudo ===
=== SSH and Sudo ===
* Set up sudo to allow members of the admin group to become root.
* Set up sudo to allow members of the admin group to become root (or, better yet, individual users).
* Disable root logins via SSH.
* Disable root logins via SSH.
* At some point in the future, we may be disabling the root account entirely (Ubuntu style).


== DNS and DHCP ==
== DNS and DHCP ==
=== DNS ===
=== DNS ===
* 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.
# ssh tinydns.cs.earlham.edu
** 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.
# Find an available IP in /service/tinydns/root/data
** Restart DNS by sending a SIGHUP to the named process, or using the <tt>rndc reload</tt> command.
# Add a line to that file:
'''Update Summer 2010:''' There is now a script in SVN to perform the functions listed above called addhost.sh.
  =<hostname>.cs.earlham.edu:<ip>:86400
 
# cd /service/tinydns/root/ && make
'''Note on CNAMES:'''<br />
If you want to create a CNAME for foo.public.cs.earlham.edu that is bar.public.cs.earlham.edu, the definition will go into public.zone.  On the other hand, if you wanted bar.cs.earlham.edu to be a CNAME for foo.public.cs.earlham.edu, the CNAME definition will go into cs.zone.


=== DHCP ===
=== DHCP ===

Revision as of 15:58, 8 June 2011

These are the changes that need to be made if a computer is to be added to the CS network, follow these steps.

Software

Make sure the following packages installed (through ports or through apt):

  • bash
  • ssh
  • sudo

SSH and Sudo

  • 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

DNS

  1. ssh tinydns.cs.earlham.edu
  2. Find an available IP in /service/tinydns/root/data
  3. Add a line to that file:
=<hostname>.cs.earlham.edu:<ip>:86400
  1. cd /service/tinydns/root/ && make

DHCP

  • Add the machine to forty-one:/etc/dhcp3/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

  • 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.