Compare commits

..

10 Commits

Author SHA1 Message Date
asif d867177614 Remove suspend option, enabled by default 2024-01-07 00:03:20 -07:00
Asif Bacchus 35d68ffa9a update configuration, remove deprecated options 2020-09-18 03:45:36 -06:00
Asif Bacchus 317900d3ca added AllowUsers to tighten security 2019-03-29 13:58:57 -06:00
Asif Bacchus 0af2e0c77c Updated blog post link in readme 2019-03-06 22:19:32 -07:00
Asif Bacchus 9fcf61420b updated and proofed all other readme files 2019-03-06 18:37:51 -07:00
Asif Bacchus d47fa4cfdd updated main readme and added gitattributes 2019-03-06 18:27:38 -07:00
Asif Bacchus 5600462a89 removed github as listed official address for script 2019-01-09 05:56:22 -07:00
Asif Bacchus 22a181e7c7 added missing shortcut listing for nano 2019-01-09 05:55:40 -07:00
Asif Bacchus 2504f25480 updated NTP.org link address 2019-01-09 05:54:20 -07:00
Asif Bacchus c6ba526b40 updated official location list in script comment block 2019-01-09 04:48:47 -07:00
8 changed files with 84 additions and 23 deletions
+51
View File
@@ -0,0 +1,51 @@
# Common settings that generally should always be used with your language specific settings
# Auto detect text files and perform LF normalization
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
#
# The above will handle all files NOT found below
#
# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text
*.tex text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.sql text
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after.
*.svg binary
#*.svg text
*.eps binary
#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore
+14 -8
View File
@@ -8,21 +8,27 @@ conceivable installation are included here.
This archive and included script are meant to supplement my article on setting This archive and included script are meant to supplement my article on setting
up a Debian base-system found at my blog: [My up a Debian base-system found at my blog: [My
Techie-Thoughts](https://mytechiethoughts.com/<post_address>) Techie-Thoughts](https://mytechiethoughts.com/setting-up-a-debian-base-system/)
## Included files ## Included files
Please refer to the `readme.md` in each subdirectory for a list and description of Please refer to the `readme.md` in each subdirectory for a list and description of
each included file. each included file.
Presently, configurations are included for:
- BASH profiles (including aliases and custom prompt)
- SSHd (OpenSSH server)
- timesyncd (systemd-timesyncd configuration)
## The script file (customize.sh) ## The script file (customize.sh)
The included script file copies all the files in this archive to the proper The included script file copies all the files in this archive to the proper
locations on a default Debian Stretch system. It makes backups of your existing locations on a **default** Debian Stretch system. It makes backups of your
files in-place with the extension *.original*. This simply saves you time and existing files in-place with the extension *.original*. This simply saves you
possible errors copying the files manually. The structure of this archive time and possible errors copying the files manually. The structure of this
exactly mirrors a default Debian installation, so you can use that as a guide if archive exactly mirrors a default Debian installation, so you can use that as a
you choose not to use the script. guide if you choose not to use the script.
### Running the script ### Running the script
@@ -78,7 +84,7 @@ and will NOT update your actual system!
## Final thoughts ## Final thoughts
Hopefully this saves you some time and helps you standard your new system setups Hopefully this saves you some time and helps you standardize your new system setups
with a few useful defaults. As always, if you have suggestions or want to leave with a few useful defaults. As always, if you have suggestions or want to leave
feedback for me, please do so on my [blog feedback for me, please do so on my [blog
post](https://mytechiethoughts.com/<post_address>) related to this script! post](https://mytechiethoughts.com/setting-up-a-debian-base-system/) related to this script!
+6 -6
View File
@@ -50,7 +50,7 @@ set constantshow
## (The old form, 'const', is deprecated.) ## (The old form, 'const', is deprecated.)
## Use cut-to-end-of-line by default. ## Use cut-to-end-of-line by default.
set cut set cutfromcursor
## Set the line length for wrapping text and justifying paragraphs. ## Set the line length for wrapping text and justifying paragraphs.
## If the value is 0 or less, the wrapping point will be the screen ## If the value is 0 or less, the wrapping point will be the screen
@@ -136,7 +136,7 @@ set nowrap
# set rebinddelete # set rebinddelete
## Fix numeric keypad key confusion problem. ## Fix numeric keypad key confusion problem.
set rebindkeypad set rawsequences
## Do extended regular expression searches by default. ## Do extended regular expression searches by default.
# set regexp # set regexp
@@ -162,8 +162,8 @@ set softwrap
## does not properly have a default value. ## does not properly have a default value.
# set speller "aspell -x -c" # set speller "aspell -x -c"
## Allow nano to be suspended. ## Allow nano to be suspended. This is now enabled by default and this option is deprecated
set suspend #set suspend
## Use this tab size instead of the default; it must be greater than 0. ## Use this tab size instead of the default; it must be greater than 0.
set tabsize 4 set tabsize 4
@@ -261,9 +261,9 @@ include "/usr/share/nano/*.nanorc"
# alt-x to cut highlighted text # alt-x to cut highlighted text
# alt-v to paste text # alt-v to paste text
bind ^S savefile main bind ^S savefile main
bind M-C copytext main bind M-C copy main
bind M-X cut main bind M-X cut main
bind M-V uncut main bind M-V paste main
# bind M-Q findprevious main # bind M-Q findprevious main
# bind M-W findnext main # bind M-W findnext main
# bind M-B cutwordleft main # bind M-B cutwordleft main
+5 -4
View File
@@ -1,17 +1,17 @@
# /etc: Included files # /etc: Included files
Three files are updated in the */etc* folder. The following are updated in the */etc* folder.
## BASH default profile (profile) ## BASH default profile (profile)
This is the Debian Stretch default *profile* and is copied to */etc/profile* to 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 return accounts to a baseline configuration. Again, this is done to ensure that
only */etc/bash.bashrc* is providing initial customizations to users. only */etc/bash.bashrc* is providing initial customization to users.
## Default BASH settings (bash.bashrc) ## Default BASH settings (bash.bashrc)
Of the bash customization files, this is the only one that is NOT in a default Of the bash customization files, this is the only one that is NOT in a default
configuration. I have added the following customizations I find useful configuration. I have added the following which I find useful
especially for new users and system admins: especially for new users and system admins:
- colourized directory listings with built-in automatic colour settings - colourized directory listings with built-in automatic colour settings
@@ -40,7 +40,7 @@ and new users/admins.
- always display line numbers - always display line numbers
- constantly display cursor position at the bottom of the screen - constantly display cursor position at the bottom of the screen
- set vim lock-files - set vim lock-files
- autoindent ON - auto-indent ON
- tab-size of 4 spaces - tab-size of 4 spaces
- convert tabs to spaces - convert tabs to spaces
- turn off hard line wrapping - turn off hard line wrapping
@@ -53,6 +53,7 @@ and new users/admins.
binding|function binding|function
---|--- ---|---
ctrl-s/ctrl-S|save current file
alt-c/alt-C|copy selected text alt-c/alt-C|copy selected text
alt-x/alt-X|cut selected text alt-x/alt-X|cut selected text
alt-v/alt-V|paste text on clipboard alt-v/alt-V|paste text on clipboard
+2 -2
View File
@@ -19,7 +19,7 @@ The commented lines indicate the *recommended settings* and appear directly
before the setting currently enabled that should be changed (i.e. line removed before the setting currently enabled that should be changed (i.e. line removed
and replaced with the commented line above it). and replaced with the commented line above it).
Please see my post at [My Techie-Thoughts](https://mytechiethoughts.com/<post_address) for detailed Please see my post at [My Techie-Thoughts](https://mytechiethoughts.com/setting-up-ssh-with-ed25519-user-and-host-keys-for-easy-secure-access/) for detailed
instructions on setting up a secure SSH server. instructions on setting up a secure SSH server.
## Banner file (banner) ## Banner file (banner)
@@ -33,6 +33,6 @@ used. You can delete/change/replace it freely. It is referenced in the
#Banner /etc/ssh/banner #Banner /etc/ssh/banner
``` ```
If you want to use the banner file, edit it as desired then uncomment this line If you want to use the banner file, edit it as desired then un-comment this line
in your *sshd_config*. If you do not want a banner displayed, simply leave this in your *sshd_config*. If you do not want a banner displayed, simply leave this
line commented (as-is) in your configuration. line commented (as-is) in your configuration.
+3
View File
@@ -27,6 +27,9 @@ MaxAuthTries 3
MaxSessions 5 MaxSessions 5
#PermitRootLogin no #PermitRootLogin no
PermitRootLogin yes PermitRootLogin yes
# note: 'AllowUsers' overrides 'PermitRootLogin' so list root here
# if you want root to have access!
AllowUsers root username username2
### Program settings ### Program settings
#Banner /etc/ssh/banner #Banner /etc/ssh/banner
+1 -2
View File
@@ -11,8 +11,7 @@ space delimited.
I've set the defaults in this file to be the worldwide NTP.org servers. This I've set the defaults in this file to be the worldwide NTP.org servers. This
should work for pretty much anyone that uses this file, but you *really should* should work for pretty much anyone that uses this file, but you *really should*
customize the list to use geographically closer timeservers (check out the list customize the list to use geographically closer timeservers (check out the list
[here](http://support.ntp.org/bin/view/Servers/NTPPoolServers)) or the [here](https://www.ntppool.org/zone/@)) or the timeserver on your LAN, etc.
timeserver on your LAN, etc.
When you're done editing this file, make sure you restart the *timesyncd When you're done editing this file, make sure you restart the *timesyncd
service* and check it's status to verify it is now using one of your defined NTP service* and check it's status to verify it is now using one of your defined NTP
+2 -1
View File
@@ -5,7 +5,8 @@
### original files ### original files
### ###
### Script by: Asif Bacchus for mytechiethoughts.com ### Script by: Asif Bacchus for mytechiethoughts.com
### Exclusively available from git.asifbacchus.app ### Exclusively available from:
### https://git.asifbacchus.app/asif/DebianConfigs
### Some rights reserved. ### Some rights reserved.
### ###
### Anyone is allowed to use and alter this script and any or all accompanying ### Anyone is allowed to use and alter this script and any or all accompanying