For plain text, just tell the system to run a login program on /dev/ttyS* by adding it to /etc/inittab. A description can be found
here.
For a graphical connection, you'd need to set up a
BOOTP server for basic configuration, a
tftp server for the most basic files, and configure the
XDMCP server to advertise its service on the network.