From 0649df5f49e497749b5ded4b675c6874d55fb9e8 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 8 Dec 2020 18:15:34 +0100 Subject: Initial commit (FreeBSD and Gentoo) --- FreeBSD/root/.profile | 54 ++++++++++++++++++++++++++++++++++++++++++++++ FreeBSD/user/.profile | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 FreeBSD/root/.profile create mode 100644 FreeBSD/user/.profile (limited to 'FreeBSD') diff --git a/FreeBSD/root/.profile b/FreeBSD/root/.profile new file mode 100644 index 0000000..7e29455 --- /dev/null +++ b/FreeBSD/root/.profile @@ -0,0 +1,54 @@ +# $FreeBSD: stable/12/bin/sh/dot.profile 338374 2018-08-29 16:59:19Z brd $ +# +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin +export PATH +HOME=/root +export HOME +TERM=${TERM:-xterm} +export TERM +PAGER=less +export PAGER + +# Query terminal size; useful for serial lines. +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi + +# Uncomment to display a random cookie on each login. +# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi + + +## Custom settings ## +PS1="[\[\033[01;32m\]\u\[\033[00m\]@\h \w]\\$ "; export PS1 + +export HISTSIZE=10000 +export HISTCONTROL=ignorespace:erasedups +shopt -s checkwinsize + +alias s='screen -r' +alias vi='vim' +alias invoke='/usr/local/bin/invoke -p' +alias pfssh='pfctl -t ssh_abusers -T show | tr -d " "' +alias pfexempted='pfctl -t ssh_exempted -T show | tr -d " "' +alias pfhttp='pfctl -t http_abusers -T show | tr -d " "' +alias pfsmtp='pfctl -t smtp_abusers -T show | tr -d " "' +alias pftelnet='pfctl -t telnet_abusers -T show | tr -d " "' +alias pfscanner='pfctl -v -t scanner_abusers -T show | tr -d " "' +alias pfsshscanner='pfctl -v -t ssh_scanner_abusers -T show | tr -d " "' +alias pfpermitted='pfctl -t ssh_permitted_networks -T show | tr -d " "' +alias pfadd='pfctl -t ssh_abusers -T add' +alias pfdel='pfctl -t ssh_abusers -T delete' +# alias snfs='service nfsd stop && service mountd stop && service rpcbind stop' + +export LANG=en_US.UTF-8 +export EDITOR=/usr/local/bin/emacs + +export PASSPHRASE=foo + +alias dstatus='/usr/local/bin/duplicity collection-status --name mbox_regular_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/MagnumBOX/' +alias drstatus='/usr/local/bin/duplicity collection-status --name mbox_remote_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/MagnumBOX/' + +alias dremove='/usr/local/bin/duplicity remove-all-but-n-full 5 --name mbox_regular_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B --log-file /var/log/duplicity.log --verbosity notice rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/MagnumBOX/' +alias drremove='/usr/local/bin/duplicity remove-all-but-n-full 7 --name mbox_remote_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B --log-file /var/log/duplicity.log --verbosity notice rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/MagnumBOX/' + +# enable bash-completion +[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ + source /usr/local/share/bash-completion/bash_completion.sh diff --git a/FreeBSD/user/.profile b/FreeBSD/user/.profile new file mode 100644 index 0000000..c9551c4 --- /dev/null +++ b/FreeBSD/user/.profile @@ -0,0 +1,60 @@ +# $FreeBSD: stable/12/share/skel/dot.profile 337497 2018-08-08 19:24:20Z asomers $ +# +# .profile - Bourne Shell startup script for login shells +# +# see also sh(1), environ(7). +# + +# These are normally set through /etc/login.conf. You may override them here +# if wanted. +# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH +# BLOCKSIZE=K; export BLOCKSIZE + +# Setting TERM is normally done through /etc/ttys. Do only override +# if you're sure that you'll never log in via telnet or xterm or a +# serial line. +# TERM=xterm; export TERM + +EDITOR=emacs; export EDITOR +PAGER=less; export PAGER + +# set ENV to a file invoked each time sh is started for interactive use. +ENV=$HOME/.shrc; export ENV + +# Query terminal size; useful for serial lines. +if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi + + +## customs ## +export PS1="[\u@\[\033[0;32m\]\H\[\033[00m\] \w]\\$ " + +export HISTSIZE=10000 +export HISTCONTROL=ignorespace:erasedups +export CLICOLOR=yes +shopt -s checkwinsize + +alias s='screen -r' +alias home='cd /usr/local/www/data-dist/simeon' +alias youtube-dl='/usr/local/bin/youtube-dl -f best -o "%(title)s.%(ext)s"' + +# logins # +alias bb='ssh -2 -4 sb' +alias lblackmore='ssh -2 -4 b' +alias lfg='ssh -2 -4 fg' +alias lheep='/usr/local/bin/ssh -2 -4 hb' +alias lrasp='ssh -2 -4 rp' +alias glover='ssh -2 -4 gl' +alias lsbjail01='ssh -2 -4 sb-jail01' +alias lsbjail02='ssh -2 -4 sb-jail02' +########## + +## mutt ## +alias mgsgs='mutt -F ~/.muttrc.sgs_gmail' +alias mblackmore='mutt -F ~/.muttrc.pichove' +alias mgueorgss='mutt -F ~/.muttrc.gueorgss_gmail' +########## + +export LANG=en_US.UTF-8 + +[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ + source /usr/local/share/bash-completion/bash_completion.sh -- cgit v1.3