Logging in onto Athena: X Window session. Case 1: Normal session, with normal user files. 1. User executes xlogin and types username and password. 2. Xlogin sources /etc/athena/login/Xsession. 3. /usr/athena/lib/init/xsession is sourced. 4. ~/.cshrc is sourced 5. /usr/athena/lib/init/cshrc is sourced 6. Sets athena_path, hosttype, bindir, athena_manpath, home. 7. Setenv's MORE, EDITOR, VISUAL, RUSERHOME, MANPATH, LD_LIBRARY_PATH. 8. Sources ~/.environment. 9. Sources ~/.path, or sets path to ($HOME/$bindir $athena_path .) . 9. Sets prompt, history, cdpath, interactive. 10. Aliases renew, term, mail, Mail, xresize, logout, extend, add, setup, setup_X, setup_tty, remove. 11. Sources ~/.cshrc.mine 12. Exit. 13. Exit. 14. Xrdb -merge ~/.Xresources. 15. Starts window manager, mwm unless other is specified. 16. Starts Dash, unless skip_dash is set. 17. Creates logout button, unless skip_xlogout is set. 18. Starts initial xterm, unless skip_initial_xterm is set. 19. Starts zephyr clent, sends message of day, check for mail, and pings OLC server, all unless skip_x_startup is set. 20. source ~/.startup.X. 21. Prepares for logout with "exec session_gate -logout", sources ~/.logout. 22. Exit. 23. kdestroy, unlog, runs fsid -u -f $USER. 24. Exit. Case 2: Normal session, but "no customizations" selected. 1. User executes xlogin and types username and password. 2. Xlogin sources /etc/athena/login/Xsession, passing -nocalls. 3. /usr/athena/lib/init/xsession is sourced, passing -nocalls. 4. Sets shell to be tcsh. 5. Sources /usr/athena/lib/init/cshrc 6. Sets athena_path, hosttype, bindir, athena_manpath, home. 7. Setenv's MORE, EDITOR, VISUAL, RUSERHOME, MANPATH, LD_LIBRARY_PATH. 8. Sets path to ($HOME/$bindir $athena_path .) . 9. Sets prompt, history, cdpath, interactive. 10. Aliases renew, term, mail, Mail, xresize, logout, extend, add, setup, setup_X, setup_tty, remove. 11. Exit. 12. sets WINDOW_MANAGER to mwm. 13. Starts window manager. 14. Starts dash with /usr/athena/lib/X11/app-defaults/Dash . 15. Creates logout button. 16. Starts initial xterm window. 17. Starts zephyr clent, sends message of day, check for mail, and pings OLC server. 18. Prepares for logout with "exec session_gate", no source of ~/.logout. 19. Exit. 20. Exit. 21. kdestroy, unlog, runs fsid -u -f $USER. 22. Exit. Case 3: Heavy user customization. 1. User executes xlogin and types username and password. 2. Xlogin sources /etc/athena/login/Xsession. 3. Xsession sources ~/.xsession. 4. Follow customizations set in user's .xsession. login sequence for tty: if you telnet, the receiving end runs /bin/login, which then exec's your shell with an initial dash in its name. This forces the shell (usually /bin/csh) to read .login after picking up .cshrc the athena .login sources /usr/athena/lib/init/login David Golombek (daveg), 1994, with base from Tom Yu (tlyu).