systemSetup

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

1-system.sh (3516B)


      1 # setup apt sources for non-free pacakges
      2 sed -i 's/bookworm main/bookworm main contrib non-free/g' /etc/apt/sources.list
      3 sed -i 's/bookworm\/updates main/bookworm\/updates main contrib non-free/g' /etc/apt/sources.list
      4 
      5 # fail2ban < sshguard
      6 
      7 apt-get update -y
      8 apt-get upgrade -y
      9 apt-get remove -y vim-tiny
     10 # sshguard alternative is fail2ban
     11 apt-get install -y manpages cmake sshguard net-tools curl wget tmux build-essential clang-15 clangd-15 clang-format-15 clang-tidy-15 clang-tools-15 tree apt-transport-https screen ranger mc vim-nox ncftp rtorrent pbzip2 htop finger openssh-server ntp iftop iotop unison apt-file libpcre3-dev w3m zip apt-src tig moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle valgrind gdb lcov cloc ncdu mutt msmtp cppcheck clang exuberant-ctags cscope source-highlight highlight etckeeper autojump strace slrn
     12 #apt-get install -y manpages cmake sshguard net-tools curl wget tmux build-essential clang-15 clangd-15 clang-format-15 clang-tidy-15 clang-tools-15 tree apt-transport-https screen ranger mc vim-nox ncftp p7zip-full rtorrent pbzip2 atop htop tcc sshuttle finger cmatrix jigdo-file openssh-server ntp kpcli iftop iotop unison qrencode apt-file libpcre3-dev graphviz pandoc elinks w3m links nmap figlet zip lynx apt-src cowsay sl tig rdiff-backup imagemagick graphicsmagick llgal moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle uncrustify unifdef valgrind doxygen fish gdb lcov slurm cloc python3-dev python3-pip silversearcher-ag ncdu mutt msmtp bmon lm-sensors cppcheck check clang toilet erlang mini-dinstall pinentry-curses exuberant-ctags cscope mkdocs source-highlight highlight massif-visualizer locate etckeeper autojump emacs-nox strace slrn ncal
     13 
     14 # vim
     15 sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc
     16 cp vimrc.local /etc/vim/vimrc.local
     17 
     18 cp ../dotfiles/webs.sh /usr/local/bin/
     19 
     20 # sheepy
     21 git clone https://spartatek.se/git/sheepy.git
     22 cd sheepy
     23 ./install.sh
     24 spm -g install sheepyExamples
     25 spm -g install hidir
     26 spm -g install lolcat
     27 # dsf is inspired by diff-so-fancy
     28 spm -g install dsf
     29 spm -g install heure
     30 spm -g install calendar
     31 cd ..
     32 
     33 # doitlive
     34 #pip install doitlive
     35 
     36 # optional
     37 #apt-get install -y p7zip-rar rar
     38 #apt-get install -y --allow-unauthenticated easydoneit
     39 
     40 # git (root account)
     41 cp ../dotfiles/.gitconfig /root/
     42 mkdir /root/.gittemplates
     43 cp -R ../dotfiles/.gittemplates/* /root/.gittemplates/
     44 git config --global user.email "you@example.com"
     45 git config --global user.name "Your Name"
     46 
     47 # tty-clock missing in bookworm
     48 #git clone https://github.com/xorg62/tty-clock
     49 #cd tty-clock
     50 #make
     51 #cp tty-clock /usr/bin/
     52 #cd ..
     53 
     54 # timg image viewer in terminal
     55 #git clone https://github.com/hzeller/timg.git
     56 #cd timg/src
     57 #apt-get install -y libwebp-dev libgraphicsmagick++-dev libturbojpeg0-dev libavutil-dev libswscale-dev libopenslide-dev libavcodec-dev libavformat-dev libavdevice-dev
     58 #mkdir build
     59 #cd build
     60 #cmake ../ -DWITH_VIDEO_DECODING=On -DWITH_VIDEO_DEVICE=On -DWITH_OPENSLIDE_SUPPORT=On
     61 #make && make install
     62 #cd ../..
     63 
     64 # git-off
     65 git clone https://noulin.net/git/git-off.git
     66 export OFF=`pwd`/git-off/c/git-off.c
     67 cd /usr/local/bin
     68 ln -s $OFF git-off
     69 cd -
     70 
     71 # etckeeper
     72 # error in debian bullseye
     73 mkdir -p /etc/.git/hooks
     74 etckeeper init
     75 
     76 # install pick
     77 apt-get install -y libncurses5-dev
     78 git clone https://github.com/mptre/pick
     79 cd pick
     80 ./autogen.sh
     81 ./configure
     82 make install clean
     83 cd ..
     84 
     85 # install yank
     86 #git clone https://github.com/mptre/yank
     87 #cd yank
     88 #make install clean
     89 #cd ..
     90 
     91 # end
     92 apt-get autoremove -y