systemSetup

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

commit b913b9e0b6421628d7fb395748d4f3c485fd9ee7
parent c70ac030d1d4f13cd1d9856459afee4b3e832711
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sat,  8 Sep 2018 10:24:05 +0200

add debian no gui setup

debian/5-system.sh        | 40 ++++++++++++++++++++++++++++++++++++++++
debian/6-home.sh          | 33 +++++++++++++++++++++++++++++++++
debian/updateHomeNoGui.sh | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 108 insertions(+)

Diffstat:
Adebian/5-system.sh | 40++++++++++++++++++++++++++++++++++++++++
Adebian/6-home.sh | 33+++++++++++++++++++++++++++++++++
Adebian/updateHomeNoGui.sh | 35+++++++++++++++++++++++++++++++++++
3 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/debian/5-system.sh b/debian/5-system.sh @@ -0,0 +1,40 @@ +# setup apt sources for non-free pacakges +sed -i 's/stretch main/stretch main contrib non-free/g' /etc/apt/sources.list +sed -i 's/stretch\/updates main/stretch\/updates main contrib non-free/g' /etc/apt/sources.list + +apt-get update -y +apt-get upgrade -y +apt-get remove -y vim-tiny +apt-get install -y fail2ban net-tools curl wget tmux build-essential tree apt-transport-https screen ranger mc vim p7zip-full pbzip2 atop htop glances tcc sshuttle jigdo-file openssh-server ntp kpcli iftop iotop unison qrencode apt-file libpcre3-dev elinks w3m links nmap zip lynx apt-src tig rdiff-backup moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle uncrustify unifdef valgrind fish gdb lcov silversearcher-ag ncdu bmon cppcheck check clang-3.9 exuberant-ctags mkdocs source-highlight highlight locate etckeeper autojump + +# vim +sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc +cp vimrc.local /etc/vim/vimrc.local + +cp ../dotfiles/webs.sh /usr/local/bin/ + +# git (root account) +cp ../dotfiles/.gitconfig ~/ +mkdir ~/.gittemplates +cp -R ../dotfiles/.gittemplates/* ~/.gittemplates/ +git config --global user.email "you@example.com" +git config --global user.name "Your Name" + +# 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 + +# etckeeper +# error in debian stretch +mkdir /etc/.git/hooks +etckeeper init + +# end +apt-get autoremove -y diff --git a/debian/6-home.sh b/debian/6-home.sh @@ -0,0 +1,33 @@ +./updateHomeNoGui.sh + +#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 + 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/debian/updateHomeNoGui.sh b/debian/updateHomeNoGui.sh @@ -0,0 +1,35 @@ +cp ../dotfiles/.bash_aliases ~/ +cp ../dotfiles/.bashrc ~/ +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/noc.sh ~/bin/ +mkdir ~/.gnupg +cp ../dotfiles/gpg-agent.conf ~/.gnupg/ +mkdir ~/.ssh +chmod 700 ~/.ssh +cp ../dotfiles/.ssh/config ~/.ssh/ + +# 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