diff options
author | punk <punk@libernaut> | 2021-04-21 15:26:19 +0100 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-21 15:26:19 +0100 |
commit | eac48b5a8d709135a95abcc2243b369095f074f4 (patch) | |
tree | a2e34d995cef5ac8068ec7047e93b1125c80d175 /tools | |
parent | 3bd43803fc8cb7a39a87394cb7c491ddc151e06b (diff) | |
parent | 452477a2635d85ecf772a5242ce97d9479503bb3 (diff) | |
download | doc-eac48b5a8d709135a95abcc2243b369095f074f4.tar.gz |
release 0.7.0
Diffstat (limited to 'tools')
51 files changed, 211 insertions, 1386 deletions
diff --git a/tools/conf/etc/skel/.gitconfig b/tools/conf/etc/skel/.gitconfig deleted file mode 100644 index 730d8d9..0000000 --- a/tools/conf/etc/skel/.gitconfig +++ /dev/null @@ -1,10 +0,0 @@ -[core] - pager = less -F -X - editor = vim -[diff] - tool = vimdiff -[merge] - tool = vimdiff - conflictstyle = diff3 -[difftool] - prompt = false diff --git a/tools/conf/etc/skel/.gnupg/gpg.conf b/tools/conf/etc/skel/.gnupg/gpg.conf deleted file mode 100644 index 48edc58..0000000 --- a/tools/conf/etc/skel/.gnupg/gpg.conf +++ /dev/null @@ -1,136 +0,0 @@ -# Options for GnuPG -# Copyright 1998-2003, 2010 Free Software Foundation, Inc. -# Copyright 1998-2003, 2010 Werner Koch -# -# This file is free software; as a special exception the author gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. -# -# This file is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# -# Unless you specify which option file to use (with the command line -# option "--options filename"), GnuPG uses the file ~/.gnupg/gpg.conf -# by default. -# -# An options file can contain any long options which are available in -# GnuPG. If the first non white space character of a line is a '#', -# this line is ignored. Empty lines are also ignored. -# -# See the gpg man page for a list of options. - - -# If you have more than 1 secret key in your keyring, you may want to -# uncomment the following option and set your preferred keyid. - -#default-key 621CC013 - - -# If you do not pass a recipient to gpg, it will ask for one. Using -# this option you can encrypt to a default key. Key validation will -# not be done in this case. The second form uses the default key as -# default recipient. - -#default-recipient some-user-id -#default-recipient-self - - -# Group names may be defined like this: -# group mynames = paige 0x12345678 joe patti -# -# Any time "mynames" is a recipient (-r or --recipient), it will be -# expanded to the names "paige", "joe", and "patti", and the key ID -# "0x12345678". Note there is only one level of expansion - you -# cannot make an group that points to another group. Note also that -# if there are spaces in the recipient name, this will appear as two -# recipients. In these cases it is better to use the key ID. - -#group mynames = paige 0x12345678 joe patti - - -# GnuPG can automatically locate and retrieve keys as needed using -# this option. This happens when encrypting to an email address (in -# the "user@@example.com" form) and there are no keys matching -# "user@example.com" in the local keyring. This option takes any -# number mechanisms which are tried in the given order. The default -# is "--auto-key-locate local" to search for keys only in the local -# key database. Uncomment the next line to locate a missing key using -# two DNS based mechanisms. - -#auto-key-locate local,pka,dane - - -# Common options for keyserver functions: -# (Note that the --keyserver option has been moved to dirmngr.conf) -# -# include-disabled = when searching, include keys marked as "disabled" -# on the keyserver (not all keyservers support this). -# -# no-include-revoked = when searching, do not include keys marked as -# "revoked" on the keyserver. -# -# verbose = show more information as the keys are fetched. -# Can be used more than once to increase the amount -# of information shown. -# -# auto-key-retrieve = automatically fetch keys as needed from the keyserver -# when verifying signatures or when importing keys that -# have been revoked by a revocation key that is not -# present on the keyring. -# -# no-include-attributes = do not include attribute IDs (aka "photo IDs") -# when sending keys to the keyserver. - -#keyserver-options auto-key-retrieve - - -# Uncomment this line to display photo user IDs in key listings and -# when a signature from a key with a photo is verified. - -#show-photos - - -# Use this program to display photo user IDs -# -# %i is expanded to a temporary file that contains the photo. -# %I is the same as %i, but the file isn't deleted afterwards by GnuPG. -# %k is expanded to the key ID of the key. -# %K is expanded to the long OpenPGP key ID of the key. -# %t is expanded to the extension of the image (e.g. "jpg"). -# %T is expanded to the MIME type of the image (e.g. "image/jpeg"). -# %f is expanded to the fingerprint of the key. -# %% is %, of course. -# -# If %i or %I are not present, then the photo is supplied to the -# viewer on standard input. If your platform supports it, standard -# input is the best way to do this as it avoids the time and effort in -# generating and then cleaning up a secure temp file. -# -# The default program is "xloadimage -fork -quiet -title 'KeyID 0x%k' stdin" -# On Mac OS X and Windows, the default is to use your regular JPEG image -# viewer. -# -# Some other viewers: -# photo-viewer "qiv %i" -# photo-viewer "ee %i" -# photo-viewer "display -title 'KeyID 0x%k'" -# -# This one saves a copy of the photo ID in your home directory: -# photo-viewer "cat > ~/photoid-for-key-%k.%t" -# -# Use your MIME handler to view photos: -# photo-viewer "metamail -q -d -b -c %T -s 'KeyID 0x%k' -f GnuPG" - - -# Because some mailers change lines starting with "From " to ">From " -# it is good to handle such lines in a special way when creating -# cleartext signatures; all other PGP versions do it this way too. -# To enable full OpenPGP compliance you may want to use this option. - -#no-escape-from-lines - - -# Uncomment the following option to get rid of the copyright notice - -#no-greeting diff --git a/tools/conf/etc/skel/.mutt/external b/tools/conf/etc/skel/.mutt/external deleted file mode 100644 index 8ade1b1..0000000 --- a/tools/conf/etc/skel/.mutt/external +++ /dev/null @@ -1,27 +0,0 @@ -color status blue default - -unset sendmail - -set folder="~/.mailext" -set mbox_type=Maildir -set spoolfile="~/.mailext" -set keep_flagged=yes # esc-f to mark messages in spool, and - -set mbox="~/.mailext" -set postponed="+.Drafts" -set record="+.Sent" - -set use_from=yes -set ssl_starttls=yes -set ssl_force_tls = yes - -set realname='User Name' -set from=mail@external.org - -set pop_user="mail@external.org" -set pop_pass="password" -set pop_delete=yes -set pop_host="pops://$pop_user:$pop_pass@pop.external.org:995" - -set smtp_url="smtps://$pop_user:$pop_pass@smtp.external.org/" - diff --git a/tools/conf/etc/skel/.mutt/gpg.rc b/tools/conf/etc/skel/.mutt/gpg.rc deleted file mode 100644 index 2ef0ae2..0000000 --- a/tools/conf/etc/skel/.mutt/gpg.rc +++ /dev/null @@ -1,88 +0,0 @@ -# -*-muttrc-*- -# -# Command formats for gpg. -# -# This version uses gpg-2comp from -# http://70t.de/download/gpg-2comp.tar.gz -# -# $Id$ -# -# %p The empty string when no passphrase is needed, -# the string "PGPPASSFD=0" if one is needed. -# -# This is mostly used in conditional % sequences. -# -# %f Most PGP commands operate on a single file or a file -# containing a message. %f expands to this file's name. -# -# %s When verifying signatures, there is another temporary file -# containing the detached signature. %s expands to this -# file's name. -# -# %a In "signing" contexts, this expands to the value of the -# configuration variable $pgp_sign_as. You probably need to -# use this within a conditional % sequence. -# -# %r In many contexts, mutt passes key IDs to pgp. %r expands to -# a list of key IDs. - -# Note that we explicitly set the comment armor header since GnuPG, when used -# in some localiaztion environments, generates 8bit data in that header, thereby -# breaking PGP/MIME. - -# decode application/pgp -set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" - -# verify a pgp/mime signature -set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" - -# decrypt a pgp/mime attachment -set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" - -# create a pgp/mime signed attachment -# set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" -set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" - -# create a application/pgp signed (old-style) message -# set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" -set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" - -# create a pgp/mime encrypted attachment -# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" -set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" - -# create a pgp/mime encrypted and signed attachment -# set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" -set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" - -# import a key into the public key ring -set pgp_import_command="gpg --no-verbose --import %f" - -# export a key from the public key ring -set pgp_export_command="gpg --no-verbose --export --armor %r" - -# verify a key -set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" - -# read in the public key ring -set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r" - -# read in the secret key ring -set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r" - -# fetch keys -# set pgp_getkeys_command="pkspxycwrap %r" - -# pattern for good signature - may need to be adapted to locale! - -# set pgp_good_sign="^gpgv?: Good signature from " - -# OK, here's a version which uses gnupg's message catalog: -# set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" - -# This version uses --status-fd messages -set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" - -# pattern to verify a decryption occurred -set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY" - diff --git a/tools/conf/etc/skel/.mutt/mail_alias b/tools/conf/etc/skel/.mutt/mail_alias deleted file mode 100644 index e69de29..0000000 --- a/tools/conf/etc/skel/.mutt/mail_alias +++ /dev/null diff --git a/tools/conf/etc/skel/.mutt/muttrc b/tools/conf/etc/skel/.mutt/muttrc deleted file mode 100644 index 6ec1da4..0000000 --- a/tools/conf/etc/skel/.mutt/muttrc +++ /dev/null @@ -1,60 +0,0 @@ -set config_charset="utf-8" -# set locale="de_CH" -set charset="utf-8" -set send_charset="utf-8" -set editor="vim" -set visual=vim -set auto_tag -set sort=threads - -set sort_browser=reverse-date -set sort_aux=reverse-last-date-received -set duplicate_threads=yes - -set crypt_use_gpgme=yes - -## automatically sign all outgoing messages -set crypt_autosign=yes - -## automatically encrypt outgoing messages -set crypt_autoencrypt=yes - -## automatically verify the sign of a message when opened -set crypt_verify_sig=yes - -set pgp_sign_as=0x8BF422F79FC7C975BDF07828E88440BC35095A74 -#set pgp_sign_as=0x8BF422F7 -set pgp_timeout=1800 -set pgp_autosign=yes -#set pgp_replyencrypt=yes - -source ~/.mutt/gpg.rc - -source "~/.mutt/mail_alias" -set alias_file=~/.mutt/mail_alias - -# Header -set header_cache =~/.mutt/cache/headers -set message_cachedir =~/.mutt/cache/bodies -set certificate_file =~/.mutt/certificates - -set timeout=10 # mutt 'presses' (like) a key for you - #(while you're idle) each x sec to trigger - #the thing below -set mail_check=5 # mutt checks for new mails on every keystroke - # but not more often then once in 5 seconds -set beep_new # beep on new messages in the mailboxes - -## Local system account -folder-hook '.mail' 'source ~/.mutt/system' - -## Remote account -folder-hook '.mailext' 'source ~/.mutt/external' - -## Default account -source ~/.mutt/system - -## Shortcuts -macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/external<enter><change-folder>!<enter>' - -macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/system<enter><change-folder>!<enter>' diff --git a/tools/conf/etc/skel/.mutt/system b/tools/conf/etc/skel/.mutt/system deleted file mode 100644 index ae23778..0000000 --- a/tools/conf/etc/skel/.mutt/system +++ /dev/null @@ -1,25 +0,0 @@ -color status green default - -set folder="~/.mail" -set mbox_type=Maildir -set spoolfile=/var/spool/mail/username -set keep_flagged=yes - -set mbox="~/.mail" # ~/.mailext/read_inbox -set postponed="+.Drafts" -set record="+.Sent" - -set use_from=yes - -set sendmail=/usr/sbin/exim -set ssl_starttls=no -set ssl_force_tls=no - -unset pop_user -unset pop_pass -unset pop_delete -unset pop_host -unset smtp_url - -set realname='username' -set from=username@localhost diff --git a/tools/conf/etc/skel/.vim/backup/.gitignore b/tools/conf/etc/skel/.vim/backup/.gitignore deleted file mode 100644 index e69de29..0000000 --- a/tools/conf/etc/skel/.vim/backup/.gitignore +++ /dev/null diff --git a/tools/conf/etc/skel/.vim/colors/wombat256mod.vim b/tools/conf/etc/skel/.vim/colors/wombat256mod.vim deleted file mode 100644 index 1137eb8..0000000 --- a/tools/conf/etc/skel/.vim/colors/wombat256mod.vim +++ /dev/null @@ -1,96 +0,0 @@ -" Vim color file -" Original Maintainer: Lars H. Nielsen (dengmao@gmail.com) -" Last Change: 2010-07-23 -" -" Modified version of wombat for 256-color terminals by -" David Liang (bmdavll@gmail.com) -" based on version by -" Danila Bespalov (danila.bespalov@gmail.com) - -set background=dark - -if version > 580 - hi clear - if exists("syntax_on") - syntax reset - endif -endif - -let colors_name = "wombat256mod" - - -" General colors -hi Normal ctermfg=252 ctermbg=234 cterm=none guifg=#e3e0d7 guibg=#242424 gui=none -hi Cursor ctermfg=234 ctermbg=228 cterm=none guifg=#242424 guibg=#eae788 gui=none -hi Visual ctermfg=251 ctermbg=239 cterm=none guifg=#c3c6ca guibg=#554d4b gui=none -hi VisualNOS ctermfg=251 ctermbg=236 cterm=none guifg=#c3c6ca guibg=#303030 gui=none -hi Search ctermfg=177 ctermbg=241 cterm=none guifg=#d787ff guibg=#636066 gui=none -hi Folded ctermfg=103 ctermbg=237 cterm=none guifg=#a0a8b0 guibg=#3a4046 gui=none -hi Title ctermfg=230 cterm=bold guifg=#ffffd7 gui=bold -hi StatusLine ctermfg=230 ctermbg=238 cterm=none guifg=#ffffd7 guibg=#444444 gui=italic -hi VertSplit ctermfg=238 ctermbg=238 cterm=none guifg=#444444 guibg=#444444 gui=none -hi StatusLineNC ctermfg=241 ctermbg=238 cterm=none guifg=#857b6f guibg=#444444 gui=none -hi LineNr ctermfg=241 ctermbg=232 cterm=none guifg=#857b6f guibg=#080808 gui=none -hi SpecialKey ctermfg=241 ctermbg=235 cterm=none guifg=#626262 guibg=#2b2b2b gui=none -hi WarningMsg ctermfg=203 guifg=#ff5f55 -hi ErrorMsg ctermfg=196 ctermbg=236 cterm=bold guifg=#ff2026 guibg=#3a3a3a gui=bold - -" Vim >= 7.0 specific colors -if version >= 700 -hi CursorLine ctermbg=236 cterm=none guibg=#32322f -hi MatchParen ctermfg=228 ctermbg=101 cterm=bold guifg=#eae788 guibg=#857b6f gui=bold -hi Pmenu ctermfg=230 ctermbg=238 guifg=#ffffd7 guibg=#444444 -hi PmenuSel ctermfg=232 ctermbg=192 guifg=#080808 guibg=#cae982 -endif - -" Diff highlighting -hi DiffAdd ctermbg=17 guibg=#2a0d6a -hi DiffDelete ctermfg=234 ctermbg=60 cterm=none guifg=#242424 guibg=#3e3969 gui=none -hi DiffText ctermbg=53 cterm=none guibg=#73186e gui=none -hi DiffChange ctermbg=237 guibg=#382a37 - -"hi CursorIM -"hi Directory -"hi IncSearch -"hi Menu -"hi ModeMsg -"hi MoreMsg -"hi PmenuSbar -"hi PmenuThumb -"hi Question -"hi Scrollbar -"hi SignColumn -"hi SpellBad -"hi SpellCap -"hi SpellLocal -"hi SpellRare -"hi TabLine -"hi TabLineFill -"hi TabLineSel -"hi Tooltip -"hi User1 -"hi User9 -"hi WildMenu - - -" Syntax highlighting -hi Keyword ctermfg=111 cterm=none guifg=#88b8f6 gui=none -hi Statement ctermfg=111 cterm=none guifg=#88b8f6 gui=none -hi Constant ctermfg=173 cterm=none guifg=#e5786d gui=none -hi Number ctermfg=173 cterm=none guifg=#e5786d gui=none -hi PreProc ctermfg=173 cterm=none guifg=#e5786d gui=none -hi Function ctermfg=192 cterm=none guifg=#cae982 gui=none -hi Identifier ctermfg=192 cterm=none guifg=#cae982 gui=none -hi Type ctermfg=186 cterm=none guifg=#d4d987 gui=none -hi Special ctermfg=229 cterm=none guifg=#eadead gui=none -hi String ctermfg=113 cterm=none guifg=#95e454 gui=italic -hi Comment ctermfg=246 cterm=none guifg=#9c998e gui=italic -hi Todo ctermfg=101 cterm=none guifg=#857b6f gui=italic - - -" Links -hi! link FoldColumn Folded -hi! link CursorColumn CursorLine -hi! link NonText LineNr - -" vim:set ts=4 sw=4 noet: diff --git a/tools/conf/etc/skel/.vim/swap/.gitignore b/tools/conf/etc/skel/.vim/swap/.gitignore deleted file mode 100644 index e69de29..0000000 --- a/tools/conf/etc/skel/.vim/swap/.gitignore +++ /dev/null diff --git a/tools/conf/etc/skel/.vim/undodir/.gitignore b/tools/conf/etc/skel/.vim/undodir/.gitignore deleted file mode 100644 index e69de29..0000000 --- a/tools/conf/etc/skel/.vim/undodir/.gitignore +++ /dev/null diff --git a/tools/conf/etc/skel/.vim/views/.gitignore b/tools/conf/etc/skel/.vim/views/.gitignore deleted file mode 100644 index e69de29..0000000 --- a/tools/conf/etc/skel/.vim/views/.gitignore +++ /dev/null diff --git a/tools/conf/etc/skel/.vimrc b/tools/conf/etc/skel/.vimrc deleted file mode 100644 index fb4445f..0000000 --- a/tools/conf/etc/skel/.vimrc +++ /dev/null @@ -1,156 +0,0 @@ -" Use Vim settings, rather than Vi settings (much better!). -" This must be first, because it changes other options as a side effect. -set nocompatible - -"" allow backspacing over everything in insert mode -"set backspace=indent,eol,start -" -if has("vms") - set nobackup " do not keep a backup file, use versions instead -else - set backup " keep a backup file (restore to previous version) - set undofile " keep an undo file (undo changes after closing) -endif - -set history=50 " keep 50 lines of command line history -set ruler " show the cursor position all the time -set showcmd " display incomplete commands -set incsearch " do incremental searching - -"" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries -"" let &guioptions = substitute(&guioptions, "t", "", "g") -" -"" Don't use Ex mode, use Q for formatting -"map Q gq -" -"" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, -"" so that you can undo CTRL-U after inserting a line break. -"inoremap <C-U> <C-G>u<C-U> -" -"" In many terminal emulators the mouse works just fine, thus enable it. -"if has('mouse') -" set mouse=a -"endif -" -"" Switch syntax highlighting on, when the terminal has colors -"" Also switch on highlighting the last used search pattern. - -" colorscheme desert -set t_Co=256 -if &t_Co > 2 || has("gui_running") - syntax on - set hlsearch - set background=dark - colorscheme wombat256mod - " colorscheme desert - :hi SpellBad ctermfg=Black guifg=Black -endif - - -"" Only do this part when compiled with support for autocommands. -if has("autocmd") -" -" " Enable file type detection. -" " Use the default filetype settings, so that mail gets 'tw' set to 72, -" " 'cindent' is on in C files, etc. -" " Also load indent files, to automatically do language-dependent indenting. - filetype plugin indent on -" -" " Put these in an autocmd group, so that we can delete them easily. - augroup vimrcEx - au! -" -" " For all text files set 'textwidth' to 78 characters. -" autocmd FileType text setlocal textwidth=78 -" -" " When editing a file, always jump to the last known cursor position. -" " Don't do it when the position is invalid or when inside an event handler -" " (happens when dropping a file on gvim). - autocmd BufReadPost * - \ if line("'\"") >= 1 && line("'\"") <= line("$") | - \ exe "normal! g`\"" | - \ endif - - augroup END - -else - set autoindent " always set autoindenting on - -endif " has("autocmd") - -"" Convenient command to see the difference between the current buffer and the -"" file it was loaded from, thus the changes you made. -"" Only define it when not defined already. -"if !exists(":DiffOrig") -" command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis -" \ | wincmd p | diffthis -"endif -" -"if has('langmap') && exists('+langnoremap') -" " Prevent that the langmap option applies to characters that result from a -" " mapping. If unset (default), this may break plugins (but it's backward -" " compatible). -" set langnoremap -"endif - -" Search down into subfolders -" Provides tab-completion for all file-related tasks -set path+=** - -" Display all matching files when we tab complete -set wildmenu - -" Better file browsing -let g:netrw_banner=0 " disable annoying banner -let g:netrw_browse_split=4 " open in prior window -let g:netrw_altv=1 " open splits to the right -let g:netrw_liststyle=3 " tree view -let g:netrw_list_hide=netrw_gitignore#Hide() -let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+' - - -map <F2> :tabnew -map <F3> :tabprevious<CR> -map <F4> :tabnext<CR> -" -"" Show Line Numbers -set relativenumber -set complete=.,b,u,] -set wildmode=longest,list:longest -set completeopt=menu,preview -" -"" Directories -set backupdir=~/.vim/backup -set undodir=~/.vim/undodir -set viewdir=~/.vim/views -set directory=~/.vim/swap -" -"" Spell Check -set spell spelllang=en_us -" -"" Strips whitespace -nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR> -" -"" Whitespace fixes -highlight ExtraWhitespace ctermbg=red guibg=red - -match ExtraWhitespace /\s\+$/ -autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ -autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ -autocmd InsertLeave * match ExtraWhitespace /\s\+$/ -autocmd BufWinLeave * call clearmatches() -" -" -"" For tab characters that appear 4-spaces-wide -"set tabstop=4 -"" If you're using actual tab character in your source code you probably also -"" want these settings (these are actually the defaults,set them defensively): -"set softtabstop=0 noexpandtab -"" Finally, if you want an indent to correspond to a single tab, you should also use: -""set shiftwidth=4 -"" For indents that consist of 4 space characters but are entered with the tab key: -set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab -"set list -"" set past gives problems with tabs -"" set paste -"" diff --git a/tools/conf/etc/skel/.xinitrc b/tools/conf/etc/skel/.xinitrc deleted file mode 100644 index 379a315..0000000 --- a/tools/conf/etc/skel/.xinitrc +++ /dev/null @@ -1,13 +0,0 @@ -#xrandr --output eDP1 --mode 1024x768 -#xrandr -s 1366x768 -#xrandr --dpi 73 -#xrandr --dpi 96 -#xgamma -gamma 0.8 -setxkbmap dvorak -#syndaemon -d -# -## Start the window manager - -#exec openbox-session -#exec start-mate -exec spectrwm diff --git a/tools/dnsmasq.html b/tools/dnsmasq.html index 7c923dd..4d738e4 100644 --- a/tools/dnsmasq.html +++ b/tools/dnsmasq.html @@ -83,9 +83,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> diff --git a/tools/fail2ban.html b/tools/fail2ban.html deleted file mode 100644 index 38be371..0000000 --- a/tools/fail2ban.html +++ /dev/null @@ -1,54 +0,0 @@ -<!DOCTYPEhtml> -<htmldir="ltr" lang="en"> - <head> - <meta charset='utf-8'> - <title>Fail2ban</title> - </head> - <body> - - <a href="index.html">Tools Index</a> - - <h1>Fail2ban</h1> - - <pre> - $ prt-get depinst fail2ban - </pre> - - <h2 id="conf">1. Configure</h2> - - <p>To start fail2ban at next boot edit /etc/rc.conf and add fail2ban. - Fail2ban will verify if /etc/fail2ban/jail.local exist, if exist will - use it. Copy distribution jail.conf to jail.locol;</p> - - <pre> - $ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local - </pre> - - <p>Edit /etc/fail2ban/jail.local, example configuration;</p> - - <pre> - [ssh-iptables] - - enabled = enable - filter = sshd - action = iptables[name=SSH, port=ssh, protocol=tcp] - sendmail-whois[name=SSH, dest=admin@box, sender=fail2ban@box, sendername="fail2ban"] - logpath = /var/log/auth - maxretry = 5 - </pre> - - <p>Test a filter</p> - - <pre> - # fail2ban-regex /var/log/iptables iptables-ssh.conf - </pre> - - <a href="index.html">Tools Index</a> - - <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. - See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> - </body> -</html> diff --git a/tools/gitolite.html b/tools/gitolite.html index ea07129..fd9ad8c 100644 --- a/tools/gitolite.html +++ b/tools/gitolite.html @@ -826,9 +826,9 @@ </pre> <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/gnupg.html b/tools/gnupg.html index 89dfe84..a0da5d2 100644 --- a/tools/gnupg.html +++ b/tools/gnupg.html @@ -51,7 +51,7 @@ <pre> $ gpg2 --full-gen-key - gpg (GnuPG) 2.1.11; Copyright (C) 2020 Free Software Foundation, Inc. + gpg (GnuPG) 2.1.11; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. @@ -295,9 +295,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> diff --git a/tools/index.html b/tools/index.html index 2724a6f..dd73571 100644 --- a/tools/index.html +++ b/tools/index.html @@ -14,6 +14,7 @@ <h2>System Tools</h2> <ul> + <li><a href="tmux.html">Tmux</a></li> <li><a href="tar.html">Tar</a> <ul> <li><a href="tar.html#tarbkup">1. Create Backup</a></li> @@ -68,55 +69,6 @@ <li><a href="x.html">X</a></li> </ul> - <h2>System Administration</h2> - - <ul> - <li><a href="network.html">Network Tools</a> - <ul> - <li><a href="dnsmasq.html">Dnscrypt and Dnsmasq</a></li> - <li><a href="tcpdump.html">Tcpdump</a></li> - <li><a href="nmap.html">Nmap</a></li> - <li><a href="wireless.html">Wireless</a></li> - </ul> - </li> - <li><a href="storage.html">Storage</a> - <ul> - <li><a href="storage.html#fsck">1. Maintenance</a></li> - <li><a href="storage.html#mv">2. Moving data</a></li> - <li><a href="storage.html#resize">2. Resize</a></li> - </ul> - </li> - <li><a href="lvm.html">LVM</a> - <ul> - <li><a href="lvm.html#lvmpart">1. LVM partition</a></li> - <li><a href="lvm.html#pv">2. Create physical volume</a></li> - <li><a href="lvm.html#vg">3. Create volume group</a></li> - <li><a href="lvm.html#lv">4. Create logical volume</a></li> - <li><a href="lvm.html#fsck">5. Maintenance</a></li> - </ul> - </li> - <li><a href="syslog-ng.html">Syslog-ng</a> - <ul> - <li><a href="syslog-ng.html#install">Install syslog-ng</a></li> - <li><a href="syslog-ng.html#configure">Configure syslog-ng</a></li> - <li><a href="logrotate.html">Logrotate</a></li> - <li><a href="logwatch.html">Logwatch</a> - <ul> - <li><a href="logwatch.html#conf">Configure Logwatch</a></li> - <li><a href="logwatch.html#cron">Set cron task</a></li> - </ul> - </li> - - </ul> - </li> - <li><a href="fail2ban.html">Fail2Ban</a> - <ul> - <li><a href="fail2ban.html#conf">Configure Fail2ban</a></li> - </ul> - </li> - - </ul> - <h2>Network Services</h2> <ul> <li><a href="qemu.html">Qemu</a> @@ -145,6 +97,7 @@ <li><a href="nginx.html#logs">6. Logs</a></li> </ul> </li> + <li><a href="httpd.html">Nginx</a> <li><a href="gitolite.html">Gitolite</a> <ul> <li><a href="gitolite.html#install">1. Install Gitolite</a></li> @@ -200,9 +153,9 @@ <a href="../index.html">Documentation Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/irssi.html b/tools/irssi.html index bcf714e..fc958d7 100644 --- a/tools/irssi.html +++ b/tools/irssi.html @@ -57,9 +57,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/logrotate.html b/tools/logrotate.html index fc07169..4f58aa1 100644 --- a/tools/logrotate.html +++ b/tools/logrotate.html @@ -361,9 +361,9 @@ # logrotate -f /etc/logrotate.conf </pre> - <p>This is part of the Tribu System Documentation. -Copyright (C) 2020 -Tribu Team. + <p>This is part of the LeetIO System Documentation. +Copyright (C) 2021 +LeetIO Team. See the file <a href="fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> diff --git a/tools/logwatch.html b/tools/logwatch.html index 20d1801..9718763 100644 --- a/tools/logwatch.html +++ b/tools/logwatch.html @@ -129,9 +129,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> diff --git a/tools/lvm.html b/tools/lvm.html index 4e25b10..211b181 100644 --- a/tools/lvm.html +++ b/tools/lvm.html @@ -158,9 +158,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/lynx.html b/tools/lynx.html index b26e660..f800fcc 100644 --- a/tools/lynx.html +++ b/tools/lynx.html @@ -16,7 +16,7 @@ <pre> # Description: Text-based web browser. # URL: http://lynx.isc.org/ - # Packager: Tribu Team, silvino at bk dot ru + # Packager: LeetIO Team, silvino at bk dot ru # Depends on: ncurses openssl zlib name=lynx @@ -51,9 +51,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/mutt.html b/tools/mutt.html index 7edac42..4cb5599 100644 --- a/tools/mutt.html +++ b/tools/mutt.html @@ -311,9 +311,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/network.html b/tools/network.html index 2079cca..080ba05 100644 --- a/tools/network.html +++ b/tools/network.html @@ -11,7 +11,7 @@ <h1>Network Tools</h1> <p>This document extend - <a href="../core/network.html">core network</a>, + <a href="../linux/network.html">core network</a>, that cover the most common environments, with virtual networks and bridges.</p> @@ -58,12 +58,12 @@ </pre> <p>Change iptables init script - <a href="../core/conf/rc.d/iptables">/etc/rc.d/iptables</a> + <a href="../linux/conf/rc.d/iptables">/etc/rc.d/iptables</a> and set TYPE to bridge, - <a href="../core/conf/iptables/bridge.v4">/etc/iptables/bridge.v4</a>. + <a href="../linux/conf/iptables/bridge.v4">/etc/iptables/bridge.v4</a>. Now change - <a href="../core/conf/iptables/ipt-conf.sh">ipt-conf.sh</a> - and <a href="../core/conf/iptables/ipt-bridge.sh">ipt-bridge.sh</a> + <a href="../linux/conf/iptables/ipt-conf.sh">ipt-conf.sh</a> + and <a href="../linux/conf/iptables/ipt-bridge.sh">ipt-bridge.sh</a> with your network configuration and run; </p> @@ -72,9 +72,9 @@ </pre> <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> diff --git a/tools/nginx.html b/tools/nginx.html index 937be15..32685b9 100644 --- a/tools/nginx.html +++ b/tools/nginx.html @@ -446,9 +446,9 @@ <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/openssh.html b/tools/openssh.html index c44a934..aab5218 100644 --- a/tools/openssh.html +++ b/tools/openssh.html @@ -128,7 +128,7 @@ <h3 id="iptables">1.2. Configure iptables</h3> <p>Iptables;</p> - <p>Example of <a href="../core/scripts/iptables.sh">iptables.sh</a></p> + <p>Example of <a href="../linux/scripts/iptables.sh">iptables.sh</a></p> <pre> $IPT -A INPUT -i ${PUB_IF} -p tcp --dport 2222 --sport 1024:65535 -m state --state ESTABLISHED -j ACCEPT @@ -315,9 +315,9 @@ </pre> <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> diff --git a/tools/postgresql.html b/tools/postgresql.html index f27b7d4..a87c0b9 100644 --- a/tools/postgresql.html +++ b/tools/postgresql.html @@ -350,9 +350,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/qemu.html b/tools/qemu.html index b8b462b..44f48ae 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -43,7 +43,7 @@ this describes how to create a qcow2 type;</p> <pre> - $ qemu-img create -f qcow2 crux-img.qcow2 15G + $ qemu-img create -f qcow2 crux-img.qcow2 20G </pre> <h3 id="mount">2.1. Mount images</h3> @@ -57,7 +57,7 @@ </pre> <p>Information about preparing - <a href="../core/install.html#step2">partitions</a> + <a href="../linux/install.html#step2">partitions</a> and <a href="storage.html">storage</a> administration. You can use image as a normal disk, example how to use parted to create a gpt system table;</p> @@ -68,19 +68,15 @@ unit mib \ mkpart primary 2 4 \ name 1 grub \ - mkpart ESP fat32 4 128 \ + mkpart ESP fat32 4 132 \ name 2 efi \ - mkpart primary ext4 128 1128 \ + mkpart primary ext4 132 1132 \ name 3 boot \ - mkpart primary ext4 1128 12128 \ - name 4 root \ - mkpart primary ext4 12128 14128 \ - name 5 var \ - mkpart primary ext4 14128 100% \ - name 6 lvm \ + mkpart primary 1132 100% \ + name 4 lvm \ set 1 bios_grub on \ set 2 boot on \ - set 6 lvm on + set 4 lvm on </pre> <pre> @@ -90,11 +86,19 @@ <p>Use /dev/mapper/$(name_of_device) to assign correct blocks;</p> <pre> + pvcreate /dev/mapper/${DEV_NAME}p4 + vgcreate vg_system /dev/mapper/${DEV_NAME}p4 + lvcreate -L 15G -n lv_root vg_system + lvcreate -L 2G -n lv_var vg_system + lvcreate -l 100%FREE -n lv_home vg_system + </pre> + + <pre> mkfs.fat -F 32 /dev/mapper/${DEV_NAME}p2 mkfs.ext4 /dev/mapper/${DEV_NAME}p3 - mkfs.ext4 /dev/mapper/${DEV_NAME}p4 - mkfs.ext4 /dev/mapper/${DEV_NAME}p5 - pvcreate /dev/mapper/${DEV_NAME}p6 + mkfs.ext4 /dev/vg_system/lv_root + mkfs.ext4 /dev/vg_system/lv_var + mkfs.ext4 /dev/vg_system/lv_home </pre> <p>Read <a href="lvm.html">lvm</a> documentation on how to setup @@ -103,7 +107,7 @@ <p>Mount partition;</p> <pre> - mount /dev/mapper/${DEV_NAME}p4 $CHROOT + mount /dev/vg_system/ mkdir -p $CHROOT/proc mkdir -p $CHROOT/sys mkdir -p $CHROOT/dev @@ -401,9 +405,9 @@ </pre> <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/scripts/mirror-system b/tools/scripts/mirror-system deleted file mode 100755 index 5700d85..0000000 --- a/tools/scripts/mirror-system +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -if [ -f /tmp/mirror ]; then - echo "mirror system is already running" - exit 0 -fi - -touch /tmp/mirror - -#BUILD_NAME="R2D9" -#BUILD_TITLE="${BUILD_NAME}-$(cat /usr/ports/releases/stable/metadata/build-version)" -BUILD_TITLE="Crux 3.5" - -# Update system -#ports -u - -# make them look like updated -echo "touch packages..." -for package in /usr/ports/packages/*; do - touch ${package}; -done - -# make sure permissions are right -echo "chown pkgmk:pkgmk -R /usr/ports" -chown pkgmk:pkgmk -R /usr/ports - -#echo "update system" -#prt-get depinst $(prt-get listinst | xargs prt-get quickdep) -#prt-get sysup -#prt-get update -fr $(revdep) -# -# Create list of installed packages -echo "creating list of installed..." -rm -r /usr/ports/installed -pkg_installed - -### clean distribution files -mv /usr/ports/distfiles/* /usr/ports/archive/distfiles -### clean packages files -mv /usr/ports/packages/* /usr/ports/archive/packages -### get sources and packages -cd /usr/ports/installed -for installed in *; do - prt-get path $installed | while read -r line; do - cd $line - ##get source - sudo -u pkgmk -g pkgmk pkgmk -do - #make sure package exists - current="${installed}#$(prt-get current ${installed}).pkg.tar.gz" - echo "checking $current ..." - cp /usr/ports/archive/packages/${current} /usr/ports/packages/ - #prt-get update $installed - done -done - -# Create repository -echo "creating repository" -cd /usr/ports/packages -pkg-repgen - -# Create mirror page -echo "creating mirror index page" -portspage --title=${BUILD_TITLE} /usr/ports/installed > /usr/ports/installed/index.html - -sed -i "s@usr\/ports\/installed@mirror/installed@g" /usr/ports/installed/index.html - -echo "setting permissions /usr/ports" -chown pkgmk:pkgmk -R /usr/ports - -# Remove temporary file -rm /tmp/mirror diff --git a/tools/scripts/pkgmk-test.conf b/tools/scripts/pkgmk-test.conf deleted file mode 100644 index 4a04eec..0000000 --- a/tools/scripts/pkgmk-test.conf +++ /dev/null @@ -1,19 +0,0 @@ -# -# /etc/pkgmk.conf: pkgmk(8) configuration -# - -source /etc/pkgmk.conf - -#PKGMK_SOURCE_MIRRORS=(http://c1.ank/distfiles/) -PKGMK_SOURCE_DIR="$PWD" -PKGMK_PACKAGE_DIR="$PWD" -PKGMK_WORK_DIR="$PWD/work" -PKGMK_DOWNLOAD="yes" -PKGMK_UP_TO_DATE="no" -# PKGMK_IGNORE_FOOTPRINT="no" -# PKGMK_IGNORE_NEW="no" -# PKGMK_NO_STRIP="no" -# PKGMK_DOWNLOAD_PROG="wget" -# PKGMK_WGET_OPTS="" -# PKGMK_CURL_OPTS="" -# PKGMK_COMPRESSION_MODE="gz" diff --git a/tools/scripts/pkgmk-test.sh b/tools/scripts/pkgmk-test.sh deleted file mode 100644 index 4cfe2c3..0000000 --- a/tools/scripts/pkgmk-test.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -CONF=${DIR}/pkgmk-test.conf -echo "pkgmk -cf $CONF -d -is $1" -fakeroot pkgmk -cf $CONF -d -is $1 diff --git a/tools/scripts/replace.sh b/tools/scripts/replace.sh deleted file mode 100755 index 8d5d8d9..0000000 --- a/tools/scripts/replace.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# find and replace string on files -folder=$1 -oldstring=$2 -newstring=$3 - -#grep -rl $oldstring $folder | xargs sed -i s@$oldstring@$newstring@g -grep -rl "$oldstring" $folder | xargs sed -i "s@$oldstring@$newstring@g" diff --git a/tools/scripts/runvm/c12-dvd b/tools/scripts/runvm/c12-dvd deleted file mode 100644 index 9cbf201..0000000 --- a/tools/scripts/runvm/c12-dvd +++ /dev/null @@ -1,15 +0,0 @@ -export QEMU_AUDIO_DRV=alsa - -memory=1024 - -boot=c - -iso=iso/devuan_jessie_1.0.0_amd64_CD.iso - -image=img/c12-dvd.qcow2 - -tap="tap2" - -mac="54:60:be:ef:5c:72" - -other="-soundhw hda -vga std -display sdl -usb -device usb-ehci -device usb-host,vendorid=0x13d3,productid=0x5652" diff --git a/tools/scripts/runvm/profile/crux b/tools/scripts/runvm/profile/crux deleted file mode 100644 index 672b80d..0000000 --- a/tools/scripts/runvm/profile/crux +++ /dev/null @@ -1,7 +0,0 @@ -mac="54:60:be:ef:5c:64" -memory=1024 -boot=$2 -tap="tap4" -iso=iso/crux-3.4.iso -image=img/c14.qcow2 -other="-vga std -display sdl" diff --git a/tools/scripts/runvm/runvm.sh b/tools/scripts/runvm/runvm.sh deleted file mode 100644 index 21cd097..0000000 --- a/tools/scripts/runvm/runvm.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -function rmac_addr (){ -printf '54:60:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) -} - -source profile/$1 - -#mac=$(rmac_addr) -#memory=1024 -#boot=d -#tap="tap1" -#iso=iso/crux-3.4.iso -#image=img/crux-standard.qcow2 -#other="-soundhw hda -vga std -display sdl" - -qemu-system-x86_64 \ - -enable-kvm \ - -m ${memory} \ - -boot ${boot} \ - -cdrom ${iso} \ - -hda ${image} \ - -device e1000,netdev=t0,mac=${mac} \ - -netdev tap,id=t0,ifname=${tap},script=no,downscript=no \ - ${other} \ - & diff --git a/tools/scripts/setup-gitolite.sh b/tools/scripts/setup-gitolite.sh deleted file mode 100644 index c42db14..0000000 --- a/tools/scripts/setup-gitolite.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -# First we define the function -ConfirmOrExit () -{ - while true - do - echo -n "Please confirm (y or n) :" - read CONFIRM - case $CONFIRM in - y|Y|YES|yes|Yes) break ;; - n|N|no|NO|No) - echo "Aborting - you entered $CONFIRM" - exit - ;; - *) echo "Please enter only y or n" - esac - done - echo "You entered $CONFIRM. Continuing ..." -} - - -# Absolute path to this script, e.g. /home/user/bin/foo.sh -SCRIPT=$(readlink -f "$0") -# Absolute path this script is in, thus /home/user/bin -SCRIPTPATH=$(dirname "$SCRIPT") - -DIR=$(dirname "$SCRIPTPATH"); -DIR_CONF=$DIR"/conf" - -echo "SCRIPT=$SCRIPT"; -echo "SCRIPTPATH=$SCRIPTPATH"; -echo "DIR=$DIR"; -echo "DIR_CONF=$DIR_CONF"; -ConfirmOrExit - - prt-get depinst gitolite - - mkdir -p /srv/gitolite - useradd -U -d /srv/gitolite gitolite - chown gitolite:gitolite /srv/gitolite - -exit 0; diff --git a/tools/scripts/setup-nginx.sh b/tools/scripts/setup-nginx.sh deleted file mode 100644 index 11065d2..0000000 --- a/tools/scripts/setup-nginx.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -#. `dirname $0`/config-install.sh -# -#prt-get depinst nginx -# -#cp -R $CONF_DIR/etc/nginx/* /etc/nginx/ -# -#mkdir /srv/www -#chown www:www /srv/www -# -#usermod -a -g www nginx -#usermod -m -d /srv/www nginx - -openssl genrsa -des3 -out /etc/ssl/keys/nginx.key 2048 -openssl req -new -key /etc/ssl/keys/nginx.key -out /etc/ssl/certs/nginx.csr -openssl x509 -req -days 365 \ - -in /etc/ssl/certs/nginx.csr \ - -signkey /etc/ssl/keys/nginx.key \ - -out /etc/ssl/certs/nginx.crt - -cp /etc/ssl/keys/nginx.key /etc/ssl/keys/nginx.key.pass -openssl rsa -in /etc/ssl/keys/nginx.key.pass -out /etc/ssl/keys/nginx.key - diff --git a/tools/scripts/setup-openssh.sh b/tools/scripts/setup-openssh.sh deleted file mode 100644 index 14afe8b..0000000 --- a/tools/scripts/setup-openssh.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -# First we define the function -ConfirmOrExit () -{ - while true - do - echo -n "Please confirm (y or n) :" - read CONFIRM - case $CONFIRM in - y|Y|YES|yes|Yes) break ;; - n|N|no|NO|No) - echo "Aborting - you entered $CONFIRM" - exit - ;; - *) echo "Please enter only y or n" - esac - done - echo "You entered $CONFIRM. Continuing ..." -} - - -# Absolute path to this script, e.g. /home/user/bin/foo.sh -SCRIPT=$(readlink -f "$0") -# Absolute path this script is in, thus /home/user/bin -SCRIPTPATH=$(dirname "$SCRIPT") - -DIR=$(dirname "$SCRIPTPATH"); -DIR_CONF=$DIR"/conf" - -echo "SCRIPT=$SCRIPT"; -echo "SCRIPTPATH=$SCRIPTPATH"; -echo "DIR=$DIR"; -echo "DIR_CONF=$DIR_CONF"; -ConfirmOrExit - - - #installer overwrite system init script - cp -R $DIR_CONF/etc/ssh/sshd_config /etc/ssh/sshd_config - - sh /etc/rc.d/sshd start - -exit 0; diff --git a/tools/scripts/setup-php.sh b/tools/scripts/setup-php.sh deleted file mode 100644 index 4c28173..0000000 --- a/tools/scripts/setup-php.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -. `dirname $0`/config-install.sh - -prt-get depinst php php-fpm php-gd php-pdo-pgsql php-postgresql - -cp /etc/php/php.ini-development /etc/php/php.ini diff --git a/tools/scripts/setup-postgresql.sh b/tools/scripts/setup-postgresql.sh deleted file mode 100644 index 4e1ee3a..0000000 --- a/tools/scripts/setup-postgresql.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh - -# First we define the function -ConfirmOrExit () -{ - while true - do - echo -n "Please confirm (y or n) :" - read CONFIRM - case $CONFIRM in - y|Y|YES|yes|Yes) break ;; - n|N|no|NO|No) - echo "Aborting - you entered $CONFIRM" - exit - ;; - *) echo "Please enter only y or n" - esac - done - echo "You entered $CONFIRM. Continuing ..." -} - - -# Absolute path to this script, e.g. /home/user/bin/foo.sh -SCRIPT=$(readlink -f "$0") -# Absolute path this script is in, thus /home/user/bin -SCRIPTPATH=$(dirname "$SCRIPT") - -DIR=$(dirname "$SCRIPTPATH"); -DIR_CONF=$DIR"/conf" - -echo "SCRIPT=$SCRIPT"; -echo "SCRIPTPATH=$SCRIPTPATH"; -echo "DIR=$DIR"; -echo "DIR_CONF=$DIR_CONF"; -ConfirmOrExit - -IS_INSTALL=$(prt-get isinst postgresql); -echo $IS_INSTALL; -if [ "$IS_INSTALL" = "package postgresql is installed" ] -then - echo "updating postgresql" - OLD_VERSION=$(prt-get current postgresql); - echo $OLD_VERSION; - - sudo -u postgres pg_dumpall > /srv/pgsql/dump-$OLD_VERSION.sql - - sh /etc/rc.d/postgresql stop - - #extra backup, in case ... - tar --xattrs -zcpf /srv/pgsql/data-$OLD_VERSION.tar.gz \ - --directory=/srv/pgsql/data . - - rm -R /srv/pgsql/data - - prt-get update postgresql - - NEW_VERSION=$(prt-get current postgresql); - echo $NEW_VERSION; - - sudo -u postgres initdb -D /srv/pgsql/data - - rejmerge - #installer overwrite system init script - cp -R $DIR_CONF/etc/rc.d/postgresql /etc/rc.d/ - - sh /etc/rc.d/postgresql start - sleep 5 - - sudo -u postgres psql -d postgres -f /srv/pgsql/dump-$OLD_VERSION.sql - -else - echo "install postgresql and dependencies" - prt-get depinst postgresql - - cp -R $DIR_CONF/etc/rc.d/postgresql /etc/rc.d/ - - mkdir /srv/pgsql/ - touch /var/log/postgresql - chown postgres:postgres /srv/pgsql /var/log/postgresql - - sudo -u postgres initdb -D /srv/pgsql/data - - cp $DIR_CONF/srv/pgsql/data/pg_hba.conf /srv/pgsql/data/ - chown postgres:postgres /srv/pgsql/data/pg_hba.conf -fi - -exit 0; diff --git a/tools/scripts/setup-x.sh b/tools/scripts/setup-x.sh deleted file mode 100644 index 262b4dd..0000000 --- a/tools/scripts/setup-x.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/bash - -# Absolute path to this script, e.g. /home/user/bin/foo.sh -SCRIPT=$(readlink -f "$0") -# Absolute path this script is in, thus /home/user/bin -SCRIPTPATH=$(dirname "$SCRIPT") - -DIR=$(dirname "$SCRIPTPATH"); -DIR_CONF=$DIR"/conf" - - - -prt-get depinst xorg-server \ - xorg-xinit \ - xorg-xrdb \ - xorg-xdpyinfo \ - xorg-xauth \ - xorg-xmodmap \ - xorg-xrandr \ - xorg-xgamma \ - xorg-xf86-input-evdev \ - xorg-xf86-input-synaptics \ - xsel \ - xkeyboard-config - -prt-get depinst xorg-font-util \ - xorg-font-alias \ - xorg-font-dejavu-ttf \ - xorg-font-cursor-misc \ - xorg-font-misc-misc \ - console-font-terminus \ - xorg-font-terminus \ - xorg-font-mutt-misc - -prt-get search xorg-font-bitstream | xargs sudo prt-get depinst -prt-get search xorg-font-bh | xargs sudo prt-get depinst - -#prt-get search otf- | xargs sudo prt-get depinst -#prt-get depinst otf-sourcecode - -prt-get depinst \ - alsa-utils \ - libdrm \ - mesa3d \ - ffmpeg \ - gstreamer \ - gstreamer-vaapi \ - gst-plugins-base \ - gst-plugins-good \ - gst-plugins-bad \ - gst-plugins-ugly \ - cmus \ - dmenu \ - st \ - gparted \ - gimp \ - libreoffice \ - ca-certificates \ - linux-pam \ - gstreamer \ - libgd \ - icu \ - syndaemon \ - firefox - -prt-get depinst \ - openbox \ - dwm \ - spectrwm \ - mate - -ConfirmOrExit () { - while true - do - echo -n "Please confirm (y or n) :" - read CONFIRM - case $CONFIRM in - y|Y|YES|yes|Yes) break ;; - n|N|no|NO|No) - echo "Aborting - you entered $CONFIRM" - exit - ;; - *) echo "Please enter only y or n" - esac - done - echo "You entered $CONFIRM. Continuing ..." -} - -echo "SCRIPT=$SCRIPT"; -echo "SCRIPTPATH=$SCRIPTPATH"; -echo "DIR=$DIR"; -echo "DIR_CONF=$DIR_CONF"; -ConfirmOrExit - -cp -R $DIR_CONF/etc/X11/* /etc/X11/ - diff --git a/tools/squid.html b/tools/squid.html index 25fb12e..d19494a 100644 --- a/tools/squid.html +++ b/tools/squid.html @@ -65,9 +65,9 @@ ssl_bump bump all </pre> <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> diff --git a/tools/storage.html b/tools/storage.html index 430b735..03e24ef 100644 --- a/tools/storage.html +++ b/tools/storage.html @@ -149,9 +149,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> diff --git a/tools/syslog-ng.html b/tools/syslog-ng.html index 70dc994..f192fa5 100644 --- a/tools/syslog-ng.html +++ b/tools/syslog-ng.html @@ -374,9 +374,9 @@ <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. -Copyright (C) 2020 -Tribu Team. + <p>This is part of the LeetIO System Documentation. +Copyright (C) 2021 +LeetIO Team. See the file <a href="fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> diff --git a/tools/tar.html b/tools/tar.html index dfcd3a0..02c7c73 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -15,7 +15,7 @@ <p>To create a simple compressed tar;</p> <pre> - $ tar -czvf tar_name.tar.gz /path/to/archive + $ tar -czpvf tar_name.tar.gz /path/to/archive </pre> <p>Script @@ -122,9 +122,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> diff --git a/tools/tmux.html b/tools/tmux.html new file mode 100644 index 0000000..c00b046 --- /dev/null +++ b/tools/tmux.html @@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>2.5.3. Tmux</title> + </head> + + <body> + + <a href="index.html">GNU/Linux Index</a> + <h1 id="tmux">2.5.3. Tmux</h1> + + <p>Install tmux, improves cli work efficiency;</p> + + <pre> + $ sudo prt-get depinst tmux + </pre> + + <p>Create skeleton configuration file for users;</p> + + <pre> + $ sudo vim /etc/skel/.tumx.conf + </pre> + + <pre> + set -g default-terminal "screen-256color" + + set-window-option -g mode-keys vi + + # Vim style + # copy tmux's selection buffer into the primary X selection with PREFIX+CTRL+Y + bind-key u run "tmux save-buffer - | xsel -ib" + # copy primary X selection into tmux's selection buffer with PREFIX+CTRL+P + bind-key e run "xsel -o | tmux load-buffer -" + + bind-key -t vi-copy 'v' begin-selection + bind-key -t vi-copy 'y' copy-selection + + set-option -g set-titles on + set-option -g set-titles-string '#S> #I.#P #W' + + set -g visual-activity on + set -g monitor-activity on + set -g visual-bell on + set -g bell-action any + + ## Join windows: <prefix> s, <prefix> j + bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" + bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" + </pre> + + <p>Copy to your current home and start tmux;</p> + + <pre> + $ cp /etc/skel/.tmux.conf ~/ + $ tmux + </pre> + + <p>Get help;</p> + + <pre> + ctrl + b ? + </pre> + + <pre> + key = bind-key (default ctrl + b) + + Window + key c new window + key " split-window + key n next window + key p previous window + + Panes + key ; last-pane + key space next-layout + key ! break-pane + key { swap pane + key } swap pane + </pre> + + <h2 id="cpypst">2.5.3.1. Copy paste</h2> + + <p>This instructions are valid if tmux.conf file discribed + in this document is used;</p> + + <pre> + 1) enter copy mode using Control+b [ + 2) navigate to beginning of text, you want to select and hit v + 3) move around using arrow keys to select region + 4) when you reach end of region simply hit y to copy the region + 5) now Control+b ] will paste the selection + </pre> + + <p>Paste in X with xsel;</p> + + <pre> + 6) update buffer of xsel using Control+b u + </pre> + + <p>Copy from X with xsel;</p> + + <pre> + 0) update tmux buffer Control+b e + </pre> + + <p>Before pasting on vim, set paste mode and then set nopaste.</p> + + <a href="index.html">GNU/Linux Index</a> + <p> + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + + </body> +</html> diff --git a/tools/vim.html b/tools/vim.html index b76c111..6d34312 100644 --- a/tools/vim.html +++ b/tools/vim.html @@ -267,9 +267,9 @@ </dl> <a href="index.html">Tools Index</a> - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> diff --git a/tools/wireless.html b/tools/wireless.html deleted file mode 100644 index 0696cd5..0000000 --- a/tools/wireless.html +++ /dev/null @@ -1,133 +0,0 @@ -<html dir="ltr" lang="en"> - <head> - <meta charset='utf-8'> - <title>Wireless</title> - </head> - <body> - <a href="index.html">Tools Index</a> - - <h1>Wireless</h1> - - <h2>Manual configuration</h2> - - <pre> - # iwlist wlp2s0 scan - # iwconfig wlp2s0 essid name_of_network - </pre> - - <p>To get mac address of the target cell;</p> - - <pre> - # iwlist wlp2s0 scan - </pre> - - <p>Example output that matter;</p> - - <pre> - Cell 03 - Address: A8:A6:68:98:0C:C5 - </pre> - - - <h4>Recover Password WPS</h4> - - <p>First check processes that interfere with state of the interface and kill them;</p> - - <pre> - # airmon-ng check - - - Found 5 processes that could cause trouble. - If airodump-ng, aireplay-ng or airtun-ng stops working after - a short period of time, you may want to kill (some of) them! - - PID Name - 1271 wpa_supplicant - 1576 wpa_supplicant - 1633 dhclient - Process with PID 1576 (wpa_supplicant) is running on interface wlan0 - Process with PID 1633 (dhclient) is running on interface wlan0 - </pre> - - <p>Pkill or kill all of them, ex 1271;</p> - - <pre> - # kill -15 1271 - </pre> - - <p>If that fails;</p> - - <pre> - # kill -9 1271 - </pre> - - <p>If wireless card is intel;</p> - - <pre> - # rmmod iwlmvm - # rmmod iwlwifi - # modprob iwlwifi - </pre> - - <p>Put interface in monitor mode;</p> - - <pre> - # iwconfig wlp2s0 mode monitor - # ifconfig wlp2s0 up - </pre> - - <pre> - # airmon-ng start wlp2s0 - - - Interface Chipset Driver - - wlp2s0 Intel AC iwlwifi - [phy1] - (monitor mode enabled on mon0) - </pre> - - <p>Airdump-ng don't report if a router have WPS or not, for that is used wash;</p> - - <pre> - # wash -i wlp2s0 - </pre> - - <p>If the program report "Found packet with bad FCS", run with -C;</p> - - <pre> - # wash -C -i wlp2s0 - </pre> - - <p>Put mon0 on same channel of target cell;</p> - - <pre> - # iwconfig mon0 channel 6 - </pre> - - <p>Start the magic;</p> - - <pre> - # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -vv - </pre> - - <p>If BSSID is cloaked, not being broadcasted, provide it to reaver;</p> - - <pre> - # reaver -i mon0 -b A8:A6:68:98:0C:C5 -c 6 -e "bssid_name" -vv - </pre> - - <p>-a address of access point, -c client to deauthenticate</p> - - <pre> - aireplay-ng -0 1 -a 00:14:6C:7E:40:80 -c 00:0F:B5:34:30:30 ath0 - </pre> - - - <a href="index.html">Tools Index</a> - - <p>This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. - See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> - for copying conditions.</p> - </body> -</html> diff --git a/tools/x.html b/tools/x.html index 2172a56..0e9a4eb 100644 --- a/tools/x.html +++ b/tools/x.html @@ -216,9 +216,9 @@ <a href="index.html">Tools Index</a> <p> - This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html> |