The DataFed documentation has a section for describing how to set up a Globus endpoint.
DataFed Documentation
The section "Personal Computers and Workstations" links to another page, but this link is dead.
The linked resource should be found or replaced, as this process is not straightforward and has been a stumbling block for users of DataFed.