Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Environment Files #17

Open
devlinjunker opened this issue Jan 16, 2022 · 4 comments
Open

Server Environment Files #17

devlinjunker opened this issue Jan 16, 2022 · 4 comments

Comments

@devlinjunker
Copy link
Owner

devlinjunker commented Jan 16, 2022

Is your feature request related to a problem? Please describe:
I would like the experience on remote servers to be as consistent as possible

Describe the solution:
Provide/create .rc files that can be placed on server when sshing to that provide consistent experience

Also would be nice to get information when logging into server
(https://unix.stackexchange.com/questions/16255/how-can-i-change-whats-displayed-at-a-login-shell)

Send message on signout?

Describe alternatives you've considered:
N/A

Links/Additional context:
Recent History Script

Testing:

  • Place .rc files on amazon server and test that experience is more consistent and helpful info is provided to the user
  • ssh to mac mini?
  • test on work server?
@devlinjunker
Copy link
Owner Author

devlinjunker commented Feb 11, 2022

remember script to show last set of commands run (on login): https://gist.github.com/devlinjunker/42e8ce6bf3cd0eefef966ec49059c605

@devlinjunker
Copy link
Owner Author

devlinjunker commented Feb 21, 2022

Setup Script

  • Set /etc/hostname
  • Set /etc/hosts?
  • Set prompt
  • Set Aliases
  • Check programs installed?

@devlinjunker
Copy link
Owner Author

can create file in /etc/profile.d/ (contains scripts that run on each login) to output something...

OR....

on amazon ec2 linux, there is script that runs on cronjob: /usr/sbin/update-motd to update the motd.

  • Uses files in /etc/update-motd.d/ to update banner
  • see /etc/cron.d/update-motd for cronjob

@devlinjunker
Copy link
Owner Author


                    vv
                    vvv^^^^vvvv
                vvvvvv^^vvvvv^^vvvv
      vvvvvvvv^^^^^^^^^^^^^vvvvv^^^vvvv
  vvvvvvvv^^^v^^^vvvvvv^^vvvvvvvv^^^vvvvvvv
    ^vvvvvvvvv^^^^vvvvvv^^^^^^vvvvvvvv^^^vvvvv^v
vv^^vvv^^^vvvvvvvv^vvvvv^vvvvvv^^^vvvvvvv^^vv^
vv^vvvvv^^vvvvvvv^^vvvvv^^vvvvv^v##vvv^vvvv^^vvvvv^v
^vvvvv^^vvvvvv^vv^vvv^^^^^^_____##^^^vvvvvvvv^^^^
  ^^vvvvv^^vvvvvvvvv^^^^/\@@@@@@\#vvvv^^^
        ^^vvvv^^^^^vvvv/__\@@@@@@\^vvvv^v
            ;^^vvvvvvv/____\@@@@@@\vvvvvvv
            ;   \_ ^\|[  -:] ||--| | _/^^
            ;     \  |[   :] ||_/| |/
            ;      \\||___:]______/
            ;       \   ;=; /
            ;        |  ;=;|
            ;       ()  ;=;|
          (()        || ;=;|
                    / / \;=;\

@devlinjunker devlinjunker mentioned this issue Dec 11, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant