systemSetup

system setup, configuration and dotfiles
git clone https://noulin.net/git/systemSetup.git
Log | Files | Refs | README | LICENSE

commit 29bc739ae3bf1e121916b9582c469405111ef4a8
parent 7ad60fccc3e78ab18fcfc13c418a459db0e2cd36
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun,  9 Dec 2018 10:08:32 +0100

add OpenBSD setup

Diffstat:
Aopenbsd/.profile | 125+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd/.vimrc | 253+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd/1-system.sh | 26++++++++++++++++++++++++++
Aopenbsd/2-desktopSystem.sh | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd/3-home.sh | 36++++++++++++++++++++++++++++++++++++
Aopenbsd/diffHome.sh | 41+++++++++++++++++++++++++++++++++++++++++
Aopenbsd/installurl | 1+
Aopenbsd/pkglist | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Aopenbsd/systemSetupCommit.sh | 4++++
Aopenbsd/updateHome.sh | 9+++++++++
Aopenbsd/updateHomeNoGui.sh | 38++++++++++++++++++++++++++++++++++++++
11 files changed, 633 insertions(+), 0 deletions(-)

diff --git a/openbsd/.profile b/openbsd/.profile @@ -0,0 +1,125 @@ +# $OpenBSD: dot.profile,v 1.5 2018/02/02 02:29:54 yasuoka Exp $ +# +# sh/ksh initialization + +PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games +export PATH HOME TERM + + +alias al="(cat ~/.bash_aliases|grep '^alias' && cat ~/.bash_aliases_local | grep '^alias')" +alias whal='al|grep' +alias pss='pwgen -s -y 20 6; echo ; pwgen -s 20 6' +alias tar="tar --use-compress-program=pbzip2" +alias l="ls -l -h --time-style=long-iso" +alias la="ls -ltr --time-style=long-iso" +alias ll="ls -al --time-style=long-iso" +alias rd="rm -rf" +alias cd..='cd ..' +alias ..='cd ..' +alias ...='cd ../..' +alias suspend='sudo pm-suspend' +alias objdump='objdump -M intel' +alias g='git' +alias csv='scim --txtdelim=";"' +alias new='~/bin/new.sh' +alias mk='source ~/bin/mk.sh' +alias r='ranger' +alias h='history' +alias vd='vimdiff' +alias noc="sed 's/\x1b\[[0-9;]*[a-zA-Z]//g'" +alias td='tree -d' + +# Display colors in less : +alias less="less -R" + +# apt +alias qs="apt-cache search" +alias qd="apt-cache show" +alias qw="apt-get install" + +alias duu="du -h --max-depth=1" +alias dfh="df -h" + +# Screen attach detach +alias scr="screen -T xterm" +alias sr="screen -r" +alias sd="screen -d" +alias ta="tmux attach" +alias tad="tmux attach -d" + +#alias webs="w3m -no-cookie -s -W www.google.com" +alias webs='/usr/local/bin/webs.sh' +alias ws=webs +alias cm="cmatrix -b -u 6 -a -C blue" + +alias ifconfig='/sbin/ifconfig' +alias xus="xmodmap /usr/share/xmodmap/xmodmap.us" +alias xse="xmodmap /usr/share/xmodmap/xmodmap.se" + +# easydoneit +alias ,='edi' +alias ,l=', ls' +alias ,c=', cat' +alias s='~/bin/xapianOmegaSearch.sh' +alias ,lc=',l -s|tac' +alias ,lt=',l -t|tac' +alias ,a=', add -t' +alias ,s=', search' +# Add task at bottom of list +alias ,bt=', topbot bottom;, cr' +# Add task on top of list +alias ,tt=', topbot top;, cr' + +# sheepy +alias z='sheepy' +alias ref='~/bin/ref.sh' +alias zh='z -h' +alias zc='z -c' +alias zl='z -l' +alias zd='z -d' +alias zn='z -n' +alias zm='z -m' +alias ze='z -e' +alias sh='spm help' +alias sn='spm new' +alias sp='spm publish' +alias si='spm install' +alias sun='spm uninstall' +alias ssw='spm show' +alias sup='spm update' +alias sf='spm find' +alias st='spm top' +alias sht='spm hot' +alias slt='spm latest' +alias sw='spm whoami' +alias spf='spm profile' +alias sif='spm info' +alias sT='spmTui' + +# git +alias go='git checkout' +alias gi='git commit' +alias gia='git commit --amend' +alias ga='git commit -a' +alias gd='git diff' +alias gp='git push' +alias gl='git pull' +alias gu='git status' +alias gg='git log --pretty=fuller' +alias gh='git gg' +alias gc='git clone' +alias gb='git blame' +alias gs='git show --pretty=fuller' +alias gst='git stash' +alias gsta='git stash apply' +alias gr='git branch -D' +alias grt='git remote -v' +alias gj='git log -p' +alias gle='~/bin/gle.sh' +alias gdf='~/bin/gdf.sh' + +alias lsb="export LS_COLORS=\"no=00:fi=00:di=01;34:ln=01;35:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;31:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;35:*.au=00;35:*.flac=00;35:*.mid=00;35:*.midi=00;35:*.mka=00;35:*.mp3=00;35:*.mpc=00;35:*.ogg=00;35:*.ra=00;35:*.wav=00;35:\"" +alias lsd="export LS_COLORS=\"no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:\"" + + + diff --git a/openbsd/.vimrc b/openbsd/.vimrc @@ -0,0 +1,253 @@ +set nocompatible +set history=10000 +set cul +set so=20 +set ic +set foldmethod=syntax +set hls +set sidescroll=1 +set autowrite +set autoread +set incsearch +set autoindent +set background=dark +set list +set listchars=tab:\|\ +set mouse= + +set undofile " Save undo's after file closes +set undodir=$HOME/.vim/undo " where to save undo histories +set undolevels=1000 " How many undos +set undoreload=10000 " number of lines to save for undo + +filetype off " required +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" alternatively, pass a path where Vundle should install plugins +"call vundle#begin('~/some/path/here') + +" let Vundle manage Vundle, required +Plugin 'gmarik/Vundle.vim' + +" Add plugins below + +" vim-easymotion +Plugin 'Lokaltog/vim-easymotion' + +" vim-fugitive +Plugin 'tpope/vim-fugitive' + +" nerdtree +Plugin 'scrooloose/nerdtree' + +" tcomment_vim +Plugin 'tomtom/tcomment_vim' + +" vim-surround +Plugin 'tpope/vim-surround' + +" vim-jade +Plugin 'digitaltoad/vim-jade' + +" vim-coffee-script +Plugin 'kchmck/vim-coffee-script' + +" vim-javascript +Plugin 'pangloss/vim-javascript' + +" SnipMate +Plugin 'MarcWeber/vim-addon-mw-utils' +Plugin 'tomtom/tlib_vim' +Plugin 'garbas/vim-snipmate' + +" Optional +Plugin 'honza/vim-snippets' + +" Tabular +Plugin 'godlygeek/tabular' + +" Conque-GDB +Plugin 'vim-scripts/Conque-GDB' + +" minibufferexplorer +" NO - problem with syntax highlighting - Plugin 'weynhamz/vim-plugin-minibufexpl' +" help: +" https://github.com/weynhamz/vim-plugin-minibufexpl/blob/master/doc/minibufexpl.txt + +" old gcc c11 compile error - Plugin 'Valloric/YouCompleteMe' + +Plugin 'jreybert/vimagit' + +" Plugin 'vim-ctrlspace/vim-ctrlspace' + +Plugin 'vim-scripts/a.vim' + +Plugin 'Raimondi/delimitMate' + +Plugin 'vim-syntastic/syntastic' + +Plugin 'tomtom/quickfixsigns_vim' + +Plugin 'airblade/vim-gitgutter' + +" easytags is slow on large projects +" vim becomes unresponsive (even with async) +Plugin 'xolox/vim-misc' +Plugin 'xolox/vim-easytags' + +Plugin 'majutsushi/tagbar' + +Plugin 'mbbill/undotree' + +Plugin 'vim-scripts/highlight.vim' + +" Plugin 'junegunn/goyo.vim' + +" Plugin 'junegunn/limelight.vim' + +Plugin 'junegunn/vim-easy-align' + +Plugin 'junegunn/fzf' +Plugin 'junegunn/fzf.vim' + +Plugin 'posva/vim-vue' + +Plugin 'vim-scripts/Align' + +let g:ConqueTerm_Color = 2 " 1: strip color after 200 lines, 2: always with color +let g:ConqueTerm_CloseOnEnd = 1 " close conque when program ends running +let g:ConqueTerm_StartMessages = 0 " display warning messages if conqueTerm is configured incorrectly + +" All of your Plugins must be added before the following line +call vundle#end() " required +filetype plugin indent on " required +" To ignore plugin indent changes, instead use: +"filetype plugin on +" +" Brief help +" :PluginList - lists configured plugins +" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate +" :PluginSearch foo - searches for foo; append `!` to refresh local cache +" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal +" +" see :h vundle for more details or wiki for FAQ +" Put your non-Plugin stuff after this line + +" Pathogen +"execute pathogen#infect() + + +map <C-n> :NERDTreeToggle<CR> + + + +let g:EasyMotion_do_mapping = 0 " Disable default mappings +"+2 char +" Bi-directional find motion +" Jump to anywhere you want with minimal keystrokes, with just one key binding. +" `s{char}{label}` +"nmap s <Plug>(easymotion-s) +" or +" `s{char}{char}{label}` +" Need one more keystroke, but on average, it may be more comfortable. +nmap s <Plug>(easymotion-s2) + +" Turn on case insensitive feature +let g:EasyMotion_smartcase = 1 + +" JK motions: Line motions +map <Leader>j <Plug>(easymotion-j) +map <Leader>k <Plug>(easymotion-k) + +nnoremap <C-Left> :tabprevious<CR> +nnoremap <C-Right> :tabnext<CR> + +" fold coffee files +autocmd BufNewFile,BufReadPost *.coffee setl foldmethod=indent foldenable +source ~/.vim/plugin/v.vim +set ruler +autocmd BufWritePre * %s/\s\+$//e + +set path+=** +set wildmenu +" enable word wrap +set linebreak +" set visual mode selection highlighting +highlight Visual cterm=reverse ctermbg=NONE + +" ctrl space +"set hidden +"set showtabline=0 +"let g:CtrlSpaceLoadLastWorkspaceOnStart = 1 +"let g:CtrlSpaceSaveWorkspaceOnSwitch = 1 +"let g:CtrlSpaceSaveWorkspaceOnExit = 1 + +" syntastic +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 + +" quickfixsigns +nnoremap <F12> :QuickfixsignsToggle<cr> + + +" vim-easytags +let g:easytags_async = 1 + +" tagbar +nmap <F8> :TagbarToggle<CR> + +" syntastic toggle +nnoremap <F11> :SyntasticToggleMode<cr> + +" undotree +nnoremap <F5> :UndotreeToggle<cr> + +" display status line and filename +set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L" +set laststatus=2 + +" press f to show function name in C programs +fun! ShowFuncName() + let lnum = line(".") + let col = col(".") + echohl ModeMsg + echo getline(search("^[^ \t#/]\\{2}.*[^:]\s*$", 'bW')) + echohl None + call search("\\%" . lnum . "l" . "\\%" . col . "c") +endfun +map f :call ShowFuncName() <CR> + +" <F2> to show function declaration under cursor +nnoremap <F2> [i +inoremap <F2> <Esc>[i + +" <F4> to save current file +nnoremap <F4> :w<CR> +inoremap <F4> <c-o>:w<CR> + +" ; for commands +nnoremap ; : + +imap <F1> <Esc>`^ +vmap <F1> <Esc>`^ +imap jk <Esc>`^ +vmap ` <Esc> +nmap <Return> i +" paste last yanked +nnoremap \ "0p +nnoremap \| "0P + +nnoremap <F9> :tabprev<CR> +inoremap <F9> <c-o>:tabprev<CR> +nnoremap <F10> :tabnext<CR> +inoremap <F10> <c-o>:tabnext<CR> +nnoremap <F7> :q<CR> +nnoremap <S-F7> :qa<CR> +nnoremap <C-F7> :qa!<CR> diff --git a/openbsd/1-system.sh b/openbsd/1-system.sh @@ -0,0 +1,26 @@ +# setup package manager +cp installurl /etc/installurl + +pkg_add -l pkglist + +cp ../dotfiles/webs.sh /usr/local/bin/ + +# diff-so-fancy +git clone https://github.com/so-fancy/diff-so-fancy.git +cp diff-so-fancy/diff-so-fancy /usr/local/bin/ +mkdir /usr/local/bin/lib +cp diff-so-fancy/lib/DiffHighlight.pm /usr/local/bin/lib/ + +# sheepy +git clone https://github.com/RemyNoulin/sheepy.git +cd sheepy +./install.sh +spm -g install sheepyExamples + +# git-off +git clone https://github.com/RemyNoulin/git-off.git +cd git-off/c +gcc -std=gnu99 -o git-off gitoff.c +export OFF=`pwd`/git-off/c/git-off +cd /usr/local/bin +ln -s $OFF git-off diff --git a/openbsd/2-desktopSystem.sh b/openbsd/2-desktopSystem.sh @@ -0,0 +1,50 @@ +# TODO +#apt-get install -y i3-wm suckless-tools feh fluxbox eog baobab gsetroot sweep aumix geeqie audacious mplayer xine-ui meld cifs-utils keepassx gnucash texlive texi2html xtightvncviewer gvncviewer vnc4server tightvncserver x11vnc gitk terminator xemacs21 vim-gtk wifi-radar xsane gedit universalindentgui mlterm libsixel-bin w3m-img arandr xbacklight chromium-browser thunar midori eclipse-cdt +#apt-get install -y i3-wm dmenu feh fluxbox eog baobab gsetroot sweep aumix geeqie audacious mplayer xine-ui meld cifs-utils keepassx gnucash texlive texi2html tigervnc-viewer xtightvncviewer gvncviewer vnc4server tightvncserver x11vnc gitk terminator xemacs21 vim-gtk wifi-radar xsane gedit universalindentgui mlterm libsixel-bin w3m-img arandr xbacklight chromium thunar midori eclipse-cdt + + +## suckless st +#git clone git://git.suckless.org/st +#apt-get install -y libfontconfig1-dev libxft-dev +#export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ +#cd st +#git checkout -b local 66556d9 +#cp ../dotfiles/config.def.h st/ +#git add . +#git commit -m "my config" +#make clean install +#cd .. + + +## palemoon +#echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0/ /' > /etc/apt/sources.list.d/palemoon.list +#wget -nv http://download.opensuse.org/repositories/home:stevenpusser/Debian_9.0/Release.key -O Release.key +#apt-key add - < Release.key +#apt-get update -y +#apt-get install -y palemoon +##apt-get install -y --allow-unauthenticated palemoon + + +## virtualbox +#echo 'deb http://download.virtualbox.org/virtualbox/debian stretch contrib' > /etc/apt/sources.list.d/virtualbox.list +#curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc +#apt-key add oracle_vbox_2016.asc +#apt-get update -y +#apt-get install -y virtualbox-5.1 + +## lsix ls photos pictures in terminal +#git clone https://github.com/hackerb9/lsix.git +#cp lsix/lsix /usr/local/bin/ + +# no ncurses dev? +## sc-im sc improved - vim-like spreadsheet calculator +## some libraries are missing when compiling sc-in in 1-system.sh +## here, it compiles +#apt-get install -y bison libncurses5-dev libncursesw5-dev +#git clone https://github.com/andmarti1424/sc-im.git +#cd sc-im/src +#make && make install +#cd ../.. + +# optional +#apt-get install tilda conky celestia avidemux gnomebaker mhwaveedit kdebase kdebase-workspace gltron gtetrinet netris dillo diff --git a/openbsd/3-home.sh b/openbsd/3-home.sh @@ -0,0 +1,36 @@ +./updateHome.sh + +git off install + +#install vim vundle +git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim + +# in vim run :PluginInstall +echo 'in vim run :PluginInstall' + +# fzf +git clone https://github.com/junegunn/fzf.git +cd fzf +./install --all +cd .. + +# setup diff-so-fancy in gitconfig +## commented because it is in .gitconfig +git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" +git config --global color.ui true + +git config --global color.diff-highlight.oldNormal "red bold" +git config --global color.diff-highlight.oldHighlight "red bold 52" +git config --global color.diff-highlight.newNormal "green bold" +git config --global color.diff-highlight.newHighlight "green bold 22" + +git config --global color.diff.meta "227" +git config --global color.diff.frag "magenta bold" +git config --global color.diff.commit "227 bold" +git config --global color.diff.old "red bold" +git config --global color.diff.new "green bold" +git config --global color.diff.whitespace "red reverse" +git config --bool --global diff-so-fancy.markEmptyLines false +git config --bool --global diff-so-fancy.changeHunkIndicators false +git config --bool --global diff-so-fancy.stripLeadingSymbols false +git config --bool --global diff-so-fancy.useUnicodeRuler false diff --git a/openbsd/diffHome.sh b/openbsd/diffHome.sh @@ -0,0 +1,41 @@ +echo diff ../dotfiles/.bash_aliases ~/.bash_aliases +diff ../dotfiles/.bash_aliases ~/.bash_aliases +echo diff ../dotfiles/.bashrc ~/.bashrc +diff ../dotfiles/.bashrc ~/.bashrc +echo diff ../dotfiles/.gdbinit ~/.gdbinit +diff ../dotfiles/.gdbinit ~/.gdbinit +echo diff ../dotfiles/.gitconfig ~/.gitconfig +diff ../dotfiles/.gitconfig ~/.gitconfig +echo diff ../dotfiles/.gittemplates/hooks/prepare-commit-msg ~/.gittemplates/hooks/prepare-commit-msg +diff ../dotfiles/.gittemplates/hooks/prepare-commit-msg ~/.gittemplates/hooks/prepare-commit-msg +echo diff ../dotfiles/.tmux.conf ~/.tmux.conf +diff ../dotfiles/.tmux.conf ~/.tmux.conf +#diff -R ../dotfiles/.vim/* ~/.vim/ +echo diff ../dotfiles/.vimrc ~/.vimrc +diff ../dotfiles/.vimrc ~/.vimrc +#diff ../dotfiles/new.sh ~/bin/ +#diff ../dotfiles/updateXapianIndex.sh ~/bin/ +#diff ../dotfiles/xapianOmegaSearch.sh ~/bin/ +echo diff ../dotfiles/gpg-agent.conf ~/.gnupg/gpg-agent.conf +diff ../dotfiles/gpg-agent.conf ~/.gnupg/gpg-agent.conf +echo diff ../dotfiles/.ssh/config ~/.ssh/config +diff ../dotfiles/.ssh/config ~/.ssh/config + +# i3 +#diff -R ../dotfiles/.i3/* ~/.i3/ + +# fluxbox +#diff -R ../dotfiles/.fluxbox/* ~/.fluxbox/ + +# mc +#diff -R ../dotfiles/mc/* ~/.config/mc/ + +# ranger sixel/mlterm configuration +echo diff ../dotfiles/rc.conf ~/.config/ranger/rc.conf +diff ../dotfiles/rc.conf ~/.config/ranger/rc.conf +echo diff ../dotfiles/default.py ~/.config/ranger/colorschemes/default.py +diff ../dotfiles/default.py ~/.config/ranger/colorschemes/default.py + +echo +echo ---- +echo run ./systemSetupCommit.sh when the config is synchronized with latest commit diff --git a/openbsd/installurl b/openbsd/installurl @@ -0,0 +1 @@ +https://www.mirrorservice.org/pub/OpenBSD diff --git a/openbsd/pkglist b/openbsd/pkglist @@ -0,0 +1,50 @@ +GraphicsMagick-- +ImageMagick-- +astyle-- +check-- +cloc-- +cmatrix-- +cowsay-- +cppcheck-- +curl-- +doxygen-- +ectags-- +erlang-- +figlet-- +firefox-- +fish-- +gcc--%4.9 +gdb-- +git-- +graphviz-- +highlight-- +htop-- +iftop-- +kpcli-- +links-- +llgal-- +lynx-- +mc-- +nano-- +ncdu-- +neomutt-- +nmap-- +pigz-- +pwgen-- +quirks-- +ranger-- +rdiff-backup-- +ripgrep-- +rtorrent-- +screen-- +slurm-- +source-highlight-- +tig-- +toilet-- +tree-- +uncrustify-- +unison--no_x11 +valgrind-- +vim--no_x11 +w3m-- +wget-- diff --git a/openbsd/systemSetupCommit.sh b/openbsd/systemSetupCommit.sh @@ -0,0 +1,4 @@ +echo "last setup from commit:" > ~/.systemSetupCommit.txt +git show --oneline -s >> ~/.systemSetupCommit.txt +echo "Updated ~/.systemSetupCommit.txt" +cat ~/.systemSetupCommit.txt diff --git a/openbsd/updateHome.sh b/openbsd/updateHome.sh @@ -0,0 +1,9 @@ +./updateHomeNoGui.sh + +# i3 +mkdir ~/.i3 +cp -R ../dotfiles/.i3/* ~/.i3/ + +# fluxbox +mkdir ~/.fluxbox +cp -R ../dotfiles/.fluxbox/* ~/.fluxbox/ diff --git a/openbsd/updateHomeNoGui.sh b/openbsd/updateHomeNoGui.sh @@ -0,0 +1,38 @@ +cp .profile ~/ +cp ../dotfiles/.gdbinit ~/ +cp ../dotfiles/.gitconfig ~/ +mkdir ~/.gittemplates +cp -R ../dotfiles/.gittemplates/* ~/.gittemplates/ +cp ../dotfiles/.tmux.conf ~/ +mkdir ~/.vim +cp -R ../dotfiles/.vim/* ~/.vim/ +cp ../dotfiles/.vimrc ~/ +mkdir ~/bin +cp ../dotfiles/new.sh ~/bin/ +cp ../dotfiles/gf ~/bin/ +cp ../dotfiles/gre ~/bin/ +cp ../dotfiles/mk.sh ~/bin/ +cp ../dotfiles/updateXapianIndex.sh ~/bin/ +cp ../dotfiles/xapianOmegaSearch.sh ~/bin/ +cp ../dotfiles/ref.sh ~/bin/ +cp ../dotfiles/gle.sh ~/bin/ +cp ../dotfiles/gdf.sh ~/bin/ +mkdir ~/.gnupg +cp ../dotfiles/gpg-agent.conf ~/.gnupg/ +mkdir ~/.ssh +chmod 700 ~/.ssh +cp ../dotfiles/.ssh/config ~/.ssh/ +mkdir ~/.w3m +cp ../dotfiles/.w3m/config ~/.w3m/ + +# mc +mkdir -p ~/.config/mc +cp -R ../dotfiles/mc/* ~/.config/mc/ + +# ranger sixel/mlterm configuration +mkdir -p ~/.config/ranger/colorschemes +cp ../dotfiles/rc.conf ~/.config/ranger/ +cp ../dotfiles/default.py ~/.config/ranger/colorschemes/ + +# save current commit in home +./systemSetupCommit.sh