Create sysadmin's home directory and update .gitignore files.
This commit is contained in:
parent
3da28718a6
commit
374e0818c0
13 changed files with 265 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ LmdpdGhvb2tzL2dpdGF0dHJpYnV0ZXNkYg== 1757608819 1757608819 root:root 0755 - -
|
||||||
LmdpdGhvb2tzL3Bvc3QtY2hlY2tvdXQ= 1757519106 1757519106 root:root 0755 - -
|
LmdpdGhvb2tzL3Bvc3QtY2hlY2tvdXQ= 1757519106 1757519106 root:root 0755 - -
|
||||||
LmdpdGhvb2tzL3Bvc3QtbWVyZ2U= 1757519106 1757519106 root:root 0755 - -
|
LmdpdGhvb2tzL3Bvc3QtbWVyZ2U= 1757519106 1757519106 root:root 0755 - -
|
||||||
LmdpdGhvb2tzL3ByZS1jb21taXQ= 1757519106 1757519106 root:root 0755 - -
|
LmdpdGhvb2tzL3ByZS1jb21taXQ= 1757519106 1757519106 root:root 0755 - -
|
||||||
LmdpdGlnbm9yZQ== 1757593248 1757593248 root:root 0644 - -
|
LmdpdGlnbm9yZQ== 1757761402 1757593248 root:root 0644 - -
|
||||||
LmdpdG1vZHVsZXM= 1757607701 1757607701 root:root 0644 - -
|
LmdpdG1vZHVsZXM= 1757607701 1757607701 root:root 0644 - -
|
||||||
ZXRjLy5naXRpZ25vcmU= 1757611781 1757611781 root:root 0644 - -
|
ZXRjLy5naXRpZ25vcmU= 1757611781 1757611781 root:root 0644 - -
|
||||||
ZXRjL2NvbmYuZC8uZ2l0aWdub3Jl 1757609410 1757609410 root:root 0644 - -
|
ZXRjL2NvbmYuZC8uZ2l0aWdub3Jl 1757609410 1757609410 root:root 0644 - -
|
||||||
|
|
@ -43,6 +43,16 @@ ZXRjL3NzaC9zc2hfY29uZmln 1757606630 1757606630 root:root 0644 - -
|
||||||
ZXRjL3NzaC9zc2hkX2NvbmZpZw== 1757606896 1757606896 root:root 0644 - -
|
ZXRjL3NzaC9zc2hkX2NvbmZpZw== 1757606896 1757606896 root:root 0644 - -
|
||||||
ZXRjL3N1ZG9lcnMuZC9kZWZhdWx0cw== 1757599359 1757599359 root:root 0640 - -
|
ZXRjL3N1ZG9lcnMuZC9kZWZhdWx0cw== 1757599359 1757599359 root:root 0640 - -
|
||||||
ZXRjL3N1ZG9lcnMuZC9yb290LWFjY2Vzcw== 1757600157 1757600157 root:root 0640 - -
|
ZXRjL3N1ZG9lcnMuZC9yb290LWFjY2Vzcw== 1757600157 1757600157 root:root 0640 - -
|
||||||
|
aG9tZS8uZ2l0aWdub3Jl 1757762052 1757762052 root:root 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uYmFzaF9sb2dvdXQ= 1757582867 1757582867 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uYmFzaF9wcm9maWxl 1757584711 1757584711 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uYmFzaHJj 1757761708 1757586493 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uZ2l0Y29uZmln 1757582738 1757582738 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uZ2l0aWdub3Jl 1757600312 1757600312 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8ubG9jYWwvc2hhcmUvbmFuby8uZ2l0aWdub3Jl 1757586210 1757586210 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8ubmFub3Jj 1757585756 1757585756 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uc3NoLy5naXRpZ25vcmU= 1757593349 1757593349 sysadmin:users 0644 - -
|
||||||
|
aG9tZS9zeXNhZG1pbi8uc3NoL2F1dGhvcml6ZWRfa2V5cw== 1757587611 1757587611 sysadmin:users 0644 - -
|
||||||
b3B0L3NiaW4vY3JvbmpvYi1kZWh5ZHJhdGVk 1757531685 1757531685 root:root 0755 - -
|
b3B0L3NiaW4vY3JvbmpvYi1kZWh5ZHJhdGVk 1757531685 1757531685 root:root 0755 - -
|
||||||
b3B0L3NiaW4vY3JvbmpvYi11cGRhdGUtcGFja2FnZXMtbGlzdA== 1757531121 1757531121 root:root 0755 - -
|
b3B0L3NiaW4vY3JvbmpvYi11cGRhdGUtcGFja2FnZXMtbGlzdA== 1757531121 1757531121 root:root 0755 - -
|
||||||
b3B0L3NiaW4vY3JvbmpvYi13YXJuLWdpdC1zdGF0dXM= 1757591137 1757591137 root:root 0755 - -
|
b3B0L3NiaW4vY3JvbmpvYi13YXJuLWdpdC1zdGF0dXM= 1757591137 1757591137 root:root 0755 - -
|
||||||
|
|
@ -59,8 +69,9 @@ cm9vdC8uc3NoLy5naXRpZ25vcmU= 1757593349 1757593349 root:root 0644 - -
|
||||||
cm9vdC8uc3NoL2F1dGhvcml6ZWRfa2V5cw== 1757587611 1757587611 root:root 0644 - -
|
cm9vdC8uc3NoL2F1dGhvcml6ZWRfa2V5cw== 1757587611 1757587611 root:root 0644 - -
|
||||||
ZXRjL2RvYXMuY29uZg== 1728635393 1728635393 root:root 0640 - -
|
ZXRjL2RvYXMuY29uZg== 1728635393 1728635393 root:root 0640 - -
|
||||||
ZXRjL2RvYXMuZA== 1757595612 1757595612 root:root 0750 - -
|
ZXRjL2RvYXMuZA== 1757595612 1757595612 root:root 0750 - -
|
||||||
ZXRjL3NoYWRvdw== 1757702629 1757702629 root:shadow 0640 - -
|
ZXRjL3NoYWRvdw== 1757761290 1757702629 root:shadow 0640 - -
|
||||||
ZXRjL3NoYWRvdy0= 1757702585 1757702585 root:shadow 0640 - -
|
ZXRjL3NoYWRvdy0= 1757702585 1757702585 root:shadow 0640 - -
|
||||||
ZXRjL3N1ZG9lcnM= 1753553353 1753553353 root:root 0440 - -
|
ZXRjL3N1ZG9lcnM= 1753553353 1753553353 root:root 0440 - -
|
||||||
ZXRjL3N1ZG9lcnMuZC9kZWZhdWx0cw== 1757599359 1757599359 root:root 0640 - -
|
ZXRjL3N1ZG9lcnMuZC9kZWZhdWx0cw== 1757599359 1757599359 root:root 0640 - -
|
||||||
ZXRjL3N1ZG9lcnMuZC9yb290LWFjY2Vzcw== 1757600157 1757600157 root:root 0640 - -
|
ZXRjL3N1ZG9lcnMuZC9yb290LWFjY2Vzcw== 1757600157 1757600157 root:root 0640 - -
|
||||||
|
aG9tZS9zeXNhZG1pbg== 1757761743 1757761412 sysadmin:users 0711 - -
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,4 @@ ZXRjL3NoYWRvdw==
|
||||||
ZXRjL3NoYWRvdy0=
|
ZXRjL3NoYWRvdy0=
|
||||||
ZXRjL3N1ZG9lcnM=
|
ZXRjL3N1ZG9lcnM=
|
||||||
ZXRjL3N1ZG9lcnMuZC8q
|
ZXRjL3N1ZG9lcnMuZC8q
|
||||||
|
aG9tZS9zeXNhZG1pbg==
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
/bin/
|
/bin/
|
||||||
/dev/
|
/dev/
|
||||||
/home/
|
|
||||||
/lib/
|
/lib/
|
||||||
/media/
|
/media/
|
||||||
/mnt/
|
/mnt/
|
||||||
|
|
|
||||||
2
home/.gitignore
vendored
Normal file
2
home/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/*/
|
||||||
|
!/sysadmin/
|
||||||
14
home/sysadmin/.bash_logout
Normal file
14
home/sysadmin/.bash_logout
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
|
||||||
|
|
||||||
|
# Clear the screen/console on logout.
|
||||||
|
if (( SHLVL == 1 )); then
|
||||||
|
if [[ -x /usr/bin/clear_console ]]; then
|
||||||
|
/usr/bin/clear_console -q
|
||||||
|
elif [[ -x /usr/bin/clear ]]; then
|
||||||
|
/usr/bin/clear
|
||||||
|
elif [[ -x /usr/bin/tput ]]; then
|
||||||
|
/usr/bin/tput clear
|
||||||
|
else
|
||||||
|
echo -ne "\e[2J"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
19
home/sysadmin/.bash_profile
Normal file
19
home/sysadmin/.bash_profile
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
|
||||||
|
# Bash shell environmental set up.
|
||||||
|
|
||||||
|
export LANG="en_GB.UTF-8"
|
||||||
|
export LC_COLLATE="POSIX" # 'C' causes issues with some applications
|
||||||
|
export PATH="/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
|
hash less >/dev/null 2>&1 && export PAGER="less"
|
||||||
|
hash nano >/dev/null 2>&1 && export EDITOR="nano" && export VISUAL="$EDITOR"
|
||||||
|
|
||||||
|
[[ -d "$HOME/files/bin" ]] && export PATH="$HOME/files/bin:$PATH"
|
||||||
|
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
|
||||||
|
|
||||||
|
for FILE in "$HOME"/.bash_profile.d/*; do
|
||||||
|
[[ -x "$FILE" ]] && source "$FILE"
|
||||||
|
done
|
||||||
|
unset FILE
|
||||||
|
|
||||||
|
[[ -f "$HOME/.bashrc" ]] && . "$HOME/.bashrc"
|
||||||
52
home/sysadmin/.bashrc
Normal file
52
home/sysadmin/.bashrc
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
|
||||||
|
# Bash specific configuration.
|
||||||
|
|
||||||
|
prompt_user_colour() {
|
||||||
|
# Determine the colour of the username in the prompt.
|
||||||
|
|
||||||
|
if [[ "$(whoami)" == "root" ]]; then
|
||||||
|
printf "%s" "1;31m" # Bright Red.
|
||||||
|
elif [[ "$(whoami)" == "tadgy" ]]; then
|
||||||
|
printf "%s" "1;32m" # Bright Green.
|
||||||
|
else
|
||||||
|
printf "%s" "1;36m" # Bright Cyan.
|
||||||
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
shopt -s cdspell checkhash checkjobs checkwinsize cmdhist dirspell histappend no_empty_cmd_completion
|
||||||
|
|
||||||
|
HISTCONTROL="ignoredups"
|
||||||
|
HISTFILE="$HOME/.bash_history-${HOSTNAME%%.*}"
|
||||||
|
HISTFILESIZE=1000000
|
||||||
|
HISTIGNORE="bg:bg *:fg:fg *:jobs:exit:clear:history"
|
||||||
|
HISTSIZE=1000000
|
||||||
|
HISTTIMEFORMAT="%d/%m/%y %H:%M:%S "
|
||||||
|
IGNOREEOF=0
|
||||||
|
PROMPT_DIRTRIM=2
|
||||||
|
PS1='[\[\033[$(__prompt_user_colour)\]\u\[\033[0m\]@\[\033[1;33m\]\h\[\033[0m\]] \[\033[1;34m\]\w\[\033[0m\] ->'
|
||||||
|
|
||||||
|
history -a
|
||||||
|
history -r
|
||||||
|
|
||||||
|
hash grep >/dev/null 2>&1 && { alias egrep='grep -E'; alias fgrep='grep -F'; }
|
||||||
|
hash ps grep >/dev/null 2>&1 && psgrep() {
|
||||||
|
if [[ -n "$1" ]]; then
|
||||||
|
# shellcheck disable=SC2009
|
||||||
|
ps | command grep -E -- "(.*RSS.*|$1)" | command grep -F -v '(.*RSS.*|'
|
||||||
|
else
|
||||||
|
printf "%s: %s\\n" "Usage" "${FUNCNAME[0]} <something>" >&2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
hash ls >/dev/null 2>&1 && alias ls='ls -Fv --color=always'
|
||||||
|
hash nc >/dev/null 2>&1 && alias pastebin='nc termbin.com 9999'
|
||||||
|
|
||||||
|
echo -ne "\e[2q"
|
||||||
|
echo -ne "\e]12;#00FF00"
|
||||||
|
|
||||||
|
for FILE in "$HOME"/.bashrc.d/*; do
|
||||||
|
[[ -x "$FILE" ]] && source "$FILE"
|
||||||
|
done
|
||||||
|
unset FILE
|
||||||
27
home/sysadmin/.gitconfig
Normal file
27
home/sysadmin/.gitconfig
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
[user]
|
||||||
|
name = Darren 'Tadgy' Austin
|
||||||
|
email = darren@afterdark.org.uk
|
||||||
|
[color]
|
||||||
|
branch = auto
|
||||||
|
diff = auto
|
||||||
|
grep = auto
|
||||||
|
interactive = auto
|
||||||
|
showBranch = auto
|
||||||
|
status = auto
|
||||||
|
ui = auto
|
||||||
|
[credential]
|
||||||
|
username = tadgy
|
||||||
|
helper = cache --timeout 2592000
|
||||||
|
[commit]
|
||||||
|
verbose = 1
|
||||||
|
[push]
|
||||||
|
autoSetupRemote = true
|
||||||
|
[alias]
|
||||||
|
c = commit
|
||||||
|
co = checkout
|
||||||
|
d = diff
|
||||||
|
lsut = ls-files --others --exclude-standard --directory --error-unmatch -- ':/*'
|
||||||
|
p = push
|
||||||
|
s = status
|
||||||
|
[init]
|
||||||
|
defaultBranch = master
|
||||||
8
home/sysadmin/.gitignore
vendored
Normal file
8
home/sysadmin/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/*
|
||||||
|
!/.*
|
||||||
|
!/.*/
|
||||||
|
!/.*/**
|
||||||
|
|
||||||
|
/.bash_history*
|
||||||
|
/.gnupg/
|
||||||
|
/.nano_history
|
||||||
1
home/sysadmin/.local/share/nano/.gitignore
vendored
Normal file
1
home/sysadmin/.local/share/nano/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/search_history
|
||||||
125
home/sysadmin/.nanorc
Normal file
125
home/sysadmin/.nanorc
Normal file
|
|
@ -0,0 +1,125 @@
|
||||||
|
## When soft line wrapping is enabled, make it wrap lines at blank characters.
|
||||||
|
set atblanks
|
||||||
|
|
||||||
|
## Use auto-indentation.
|
||||||
|
set autoindent
|
||||||
|
|
||||||
|
## When saving a file, create a backup file by adding a tilde (~).
|
||||||
|
# set backup
|
||||||
|
|
||||||
|
## Automatically hard-wrap the current line when it becomes overlong.
|
||||||
|
# set breaklonglines
|
||||||
|
|
||||||
|
## Do case-sensitive searches by default.
|
||||||
|
# set casesensitive
|
||||||
|
|
||||||
|
## Do not use the line below the title bar.
|
||||||
|
# set emptyline
|
||||||
|
|
||||||
|
## Set the line length for wrapping text and justifying paragraphs.
|
||||||
|
set fill -2
|
||||||
|
|
||||||
|
## Draw a vertical stripe at the given column
|
||||||
|
#set guidestripe 190
|
||||||
|
|
||||||
|
## Remember the used search/replace strings for the next session.
|
||||||
|
set historylog
|
||||||
|
|
||||||
|
## Display a "scrollbar" on the righthand side of the edit window.
|
||||||
|
# set indicator
|
||||||
|
|
||||||
|
## Scroll the buffer contents per half-screen instead of per line.
|
||||||
|
# set jumpyscrolling
|
||||||
|
|
||||||
|
## Display line numbers to the left of the text area.
|
||||||
|
set linenumbers
|
||||||
|
|
||||||
|
## Enable vim-style lock-files.
|
||||||
|
set locking
|
||||||
|
|
||||||
|
## Use libmagic for syntax highlighting suggestions.
|
||||||
|
# set magic
|
||||||
|
|
||||||
|
## Don't display the helpful shortcut lists at the bottom of the screen.
|
||||||
|
set nohelp
|
||||||
|
|
||||||
|
## Don't add newlines to the ends of files.
|
||||||
|
# set nonewlines
|
||||||
|
|
||||||
|
## Save the cursor position of files between editing sessions.
|
||||||
|
# set positionlog
|
||||||
|
|
||||||
|
## Do quick statusbar blanking.
|
||||||
|
set quickblank
|
||||||
|
|
||||||
|
## Do extended regular expression searches by default.
|
||||||
|
# set regexp
|
||||||
|
|
||||||
|
## Make the Home key smarter.
|
||||||
|
set smarthome
|
||||||
|
|
||||||
|
## Enable soft line wrapping (AKA full-line display).
|
||||||
|
set softwrap
|
||||||
|
|
||||||
|
## Use this spelling checker instead of the internal one.
|
||||||
|
# set speller "aspell -x -c"
|
||||||
|
|
||||||
|
## Show flags in the title bar.
|
||||||
|
set stateflags
|
||||||
|
|
||||||
|
## When justifying text, trailing whitespace will automatically be removed.
|
||||||
|
set trimblanks
|
||||||
|
|
||||||
|
## The two characters used to indicate the presence of tabs and spaces.
|
||||||
|
set whitespace »·
|
||||||
|
|
||||||
|
## Detect word boundaries more accurately by treating punctuation
|
||||||
|
## characters as parts of words.
|
||||||
|
set wordbounds
|
||||||
|
|
||||||
|
## Let an unmodified Backspace or Delete erase the marked region, without
|
||||||
|
## affecting the cut-buffer.
|
||||||
|
# set zap
|
||||||
|
|
||||||
|
|
||||||
|
## Paint the interface elements of nano.
|
||||||
|
set errorcolor brightwhite,red
|
||||||
|
set functioncolor magenta
|
||||||
|
set keycolor brightwhite
|
||||||
|
set numbercolor brightwhite,magenta
|
||||||
|
set promptcolor brightwhite,magenta
|
||||||
|
set scrollercolor brightwhite,magenta
|
||||||
|
set selectedcolor brightwhite,blue
|
||||||
|
set spotlightcolor black,yellow
|
||||||
|
set statuscolor brightwhite,magenta
|
||||||
|
set stripecolor ,magenta
|
||||||
|
set titlecolor brightwhite,magenta
|
||||||
|
|
||||||
|
|
||||||
|
## Include all existing syntax highlight definitions.
|
||||||
|
# include "/usr/share/nano/*.nanorc"
|
||||||
|
|
||||||
|
|
||||||
|
## Key bindings.
|
||||||
|
## The following five functions are not bound to any key by default.
|
||||||
|
## You may wish to choose different keys than the ones suggested here.
|
||||||
|
# bind ^S savefile main
|
||||||
|
# bind M-Q findprevious main
|
||||||
|
# bind M-W findnext main
|
||||||
|
# bind M-B cutwordleft main
|
||||||
|
# bind M-N cutwordright main
|
||||||
|
## Set this if your Backspace key sends Del most of the time.
|
||||||
|
# bind Del backspace all
|
||||||
|
# Unbind the ^J (justification) shortcut as it's annoying.
|
||||||
|
unbind ^J main
|
||||||
|
# Allow ^Z to suspend nano.
|
||||||
|
bind ^Z suspend main
|
||||||
|
# Allow marking using ^Space.
|
||||||
|
bind ^Space mark main
|
||||||
|
# Select buffers.
|
||||||
|
bind M-9 nextbuf main
|
||||||
|
bind M-0 prevbuf main
|
||||||
|
# Use anchors.
|
||||||
|
bind Ins anchor main
|
||||||
|
bind M-, prevanchor main
|
||||||
|
bind M-. nextanchor main
|
||||||
2
home/sysadmin/.ssh/.gitignore
vendored
Normal file
2
home/sysadmin/.ssh/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/known_hosts
|
||||||
|
/known_hosts.old
|
||||||
1
home/sysadmin/.ssh/authorized_keys
Normal file
1
home/sysadmin/.ssh/authorized_keys
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICsx4EY4vbDt0TXGZsW9UjOxj+s/mVeytJ7lW5rAu0gS Darren 'Tadgy' Austin <darren@afterdark.org.uk>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue