systemSetup

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

1-system.sh (3316B)


      1 ## setup apt sources for non-free pacakges
      2 #sed -i 's/stretch main/stretch main contrib non-free/g' /etc/apt/sources.list
      3 #sed -i 's/stretch\/updates main/stretch\/updates main contrib non-free/g' /etc/apt/sources.list
      4 ## easydoneit repo
      5 #echo 'deb http://spartatek.se/packages/ unstable/' >> /etc/apt/sources.list
      6 #
      7 #apt-get update -y
      8 #apt-get upgrade -y
      9 #apt-get remove -y vim-tiny
     10 #apt-get install -y fail2ban net-tools curl wget tmux build-essential ruby tree apt-transport-https screen ranger mc vim ncftp p7zip-full rtorrent pbzip2 atop htop glances tcc sshuttle finger cmatrix jigdo-file openssh-server ntp kpcli iftop iotop unison qrencode python-nose python-nose2-cov python-nosexcover apt-file libpcre3-dev graphviz pandoc elinks w3m links nmap figlet zip lynx apt-src cowsay sl tig rdiff-backup imagemagick graphicsmagick emacs24-nox llgal moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle uncrustify unifdef valgrind doxygen fish gdb lcov python-pip slurm tpp cloc python3-dev python3-pip silversearcher-ag ncdu mutt bmon lm-sensors cppcheck check clang-3.9 toilet erlang elixir mini-dinstall pinentry-curses exuberant-ctags mkdocs source-highlight highlight massif-visualizer valkyrie locate etckeeper autojump
     11 pacman -Sy git gcc gdb ctags ranger mc w3m
     12 #
     13 ## vim
     14 #sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc
     15 #cp vimrc.local /etc/vim/vimrc.local
     16 #
     17 ## doitlive
     18 #pip install doitlive
     19 #
     20 ## lolcat
     21 #gem install lolcat
     22 
     23 cp ../dotfiles/webs.sh /usr/local/bin/
     24 
     25 ## optional
     26 #apt-get install p7zip-rar rar
     27 #apt-get install -y --allow-unauthenticated easydoneit
     28 #
     29 ## git (root account)
     30 #cp ../dotfiles/.gitconfig /root/
     31 #mkdir /root/.gittemplates
     32 #cp -R ../dotfiles/.gittemplates/* /root/.gittemplates/
     33 #git config --global user.email "you@example.com"
     34 #git config --global user.name "Your Name"
     35 #
     36 ## timg image viewer in terminal
     37 #git clone https://github.com/hzeller/timg.git
     38 #cd timg/src
     39 #apt-get install -y libwebp-dev libgraphicsmagick++-dev
     40 #make && make install
     41 #cd ../..
     42 #
     43 ## the fuck
     44 #pip3 install thefuck
     45 ##.bashrc: eval $(thefuck --alias)
     46 #
     47 ## ripgrep (similar to ag)
     48 #wget https://github.com/BurntSushi/ripgrep/releases/download/0.5.2/ripgrep-0.5.2-x86_64-unknown-linux-musl.tar.gz
     49 #/bin/tar xvf ripgrep-0.5.2-x86_64-unknown-linux-musl.tar.gz
     50 #cd ripgrep-0.5.2-x86_64-unknown-linux-musl/
     51 #mkdir -p /usr/local/share/man/man1/
     52 #install rg.1 /usr/local/share/man/man1/
     53 #install rg /usr/local/bin/
     54 #cd ..
     55 #
     56 ## docker
     57 ## --allow-unauthenticated because sometimes the key doesnt get installed
     58 #export DEBIAN_FRONTEND=noninteractive ; \
     59 #	apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D ;\
     60 #	echo "deb https://apt.dockerproject.org/repo debian-stretch main" > /etc/apt/sources.list.d/docker.list ;\
     61 #	apt-get update -y -q;\
     62 #	apt-get install --allow-unauthenticated -y -q docker-engine
     63 
     64 # diff-so-fancy
     65 git clone https://github.com/so-fancy/diff-so-fancy.git
     66 cp diff-so-fancy/diff-so-fancy /usr/local/bin/
     67 mkdir /usr/local/bin/lib
     68 cp diff-so-fancy/lib/DiffHighlight.pm /usr/local/bin/lib/
     69 
     70 ## sheepy
     71 git clone https://spartatek.se/git/sheepy.git
     72 cd sheepy
     73 ./install.sh
     74 spm install sheepyExamples -g
     75 #
     76 ## etckeeper
     77 ## error in debian stretch
     78 #mkdir /etc/.git/hooks
     79 #etckeeper init
     80 #
     81 ## end
     82 #apt-get autoremove -y