DebianConfigs/config/etc
2024-01-07 00:03:20 -07:00
..
skel added /etc/skel readme 2019-01-09 03:40:49 -07:00
ssh added AllowUsers to tighten security 2019-03-29 13:58:57 -06:00
systemd updated NTP.org link address 2019-01-09 05:54:20 -07:00
bash.bashrc Updated directory layout and readme description 2018-08-19 20:03:36 -06:00
nanorc Remove suspend option, enabled by default 2024-01-07 00:03:20 -07:00
profile Updated directory layout and readme description 2018-08-19 20:03:36 -06:00
readme.md updated and proofed all other readme files 2019-03-06 18:37:51 -07:00

/etc: Included files

The following are updated in the /etc folder.

BASH default profile (profile)

This is the Debian Stretch default profile and is copied to /etc/profile to return accounts to a baseline configuration. Again, this is done to ensure that only /etc/bash.bashrc is providing initial customization to users.

Default BASH settings (bash.bashrc)

Of the bash customization files, this is the only one that is NOT in a default configuration. I have added the following which I find useful especially for new users and system admins:

  • colourized directory listings with built-in automatic colour settings
  • changed prompt to include 24-hour clock, username, hostname and current directory display
    • username changes to RED when working as ROOT (uid=0)
  • added the following command aliases
    alias full command explanation
    ll ls -l default 'ls' output
    l ls -lAsh --group-directories-first far more useful and robust file display including sizes, permissions and owners
    rm rm -i confirmation prompt when deleting file
    mv mv -i confirmation prompt when moving file would result in overwriting existing file
    cp cp -i confirmation prompt when copying file would result in overwriting existing file

nano defaults (nanorc)

The following options have been enabled/set in nano to provide what I feel is an easier editing experience especially for people coming from a Windows background and new users/admins.

  • 'rebind' numeric keypad to fix problems using keypad with some SSH clients
  • set 'smart home' so home key is useful
  • allow opening multiple files at once
  • always display line numbers
  • constantly display cursor position at the bottom of the screen
  • set vim lock-files
  • auto-indent ON
  • tab-size of 4 spaces
  • convert tabs to spaces
  • turn off hard line wrapping
  • turn ON soft line wrapping for ease of readability
  • closing 'brackets' (for alignment purposes) set as: "')>]}
  • cut to end of line by default
  • set proper bracket matching (ie. "<" matches ">", etc.)
  • turned on default colours so nano doesn't look so drab
  • added the following key-bindings
binding function
ctrl-s/ctrl-S save current file
alt-c/alt-C copy selected text
alt-x/alt-X cut selected text
alt-v/alt-V paste text on clipboard