💾 Archived View for gmi.noulin.net › gitRepositories › systemSetup › file › debian › 1-system.sh.gmi captured on 2023-01-29 at 11:27:18. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-07-10)

-=-=-=-=-=-=-

systemSetup

Log

Files

Refs

README

LICENSE

1-system.sh (3936B)

     1 # setup apt sources for non-free pacakges
     2 sed -i 's/bullseye main/bullseye main contrib non-free/g' /etc/apt/sources.list
     3 sed -i 's/bullseye\/updates main/bullseye\/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 # fail2ban < sshguard
     8 
     9 apt-get update -y
    10 apt-get upgrade -y
    11 apt-get remove -y vim-tiny
    12 # sshguard is missing in bullseye, glances missing in bullseye
    13 apt-get install -y manpages cmake fail2ban net-tools curl wget tmux build-essential clang-11 clangd-11 clang-format-11 clang-tidy-11 clang-tools-11 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 tty-clock strace slrn
    14 
    15 # vim
    16 sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc
    17 cp vimrc.local /etc/vim/vimrc.local
    18 
    19 cp ../dotfiles/webs.sh /usr/local/bin/
    20 
    21 # sheepy
    22 git clone https://spartatek.se/git/sheepy.git
    23 cd sheepy
    24 ./install.sh
    25 spm -g install sheepyExamples
    26 spm -g install hidir
    27 spm -g install lolcat
    28 cd ..
    29 
    30 # doitlive
    31 pip install doitlive
    32 
    33 # optional
    34 apt-get install -y p7zip-rar rar
    35 apt-get install -y --allow-unauthenticated easydoneit
    36 
    37 # git (root account)
    38 cp ../dotfiles/.gitconfig /root/
    39 mkdir /root/.gittemplates
    40 cp -R ../dotfiles/.gittemplates/* /root/.gittemplates/
    41 git config --global user.email "you@example.com"
    42 git config --global user.name "Your Name"
    43 
    44 # timg image viewer in terminal
    45 git clone https://github.com/hzeller/timg.git
    46 cd timg/src
    47 apt-get install -y libwebp-dev libgraphicsmagick++-dev libturbojpeg0-dev libavutil-dev libswscale-dev libopenslide-dev libavcodec-dev libavformat-dev libavdevice-dev
    48 mkdir build
    49 cd build
    50 cmake ../ -DWITH_VIDEO_DECODING=On -DWITH_VIDEO_DEVICE=On -DWITH_OPENSLIDE_SUPPORT=On
    51 make && make install
    52 cd ../..
    53 
    54 # the fuck
    55 pip3 install thefuck
    56 #.bashrc: eval $(thefuck --alias)
    57 
    58 # ripgrep (similar to ag)
    59 wget https://github.com/BurntSushi/ripgrep/releases/download/0.5.2/ripgrep-0.5.2-x86_64-unknown-linux-musl.tar.gz
    60 /bin/tar xvf ripgrep-0.5.2-x86_64-unknown-linux-musl.tar.gz
    61 cd ripgrep-0.5.2-x86_64-unknown-linux-musl/
    62 mkdir -p /usr/local/share/man/man1/
    63 install rg.1 /usr/local/share/man/man1/
    64 install rg /usr/local/bin/
    65 cd ..
    66 
    67 # docker
    68 # --allow-unauthenticated because sometimes the key doesnt get installed
    69 export DEBIAN_FRONTEND=noninteractive ; \
    70         apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D ;\
    71         echo "deb https://apt.dockerproject.org/repo debian-bullseye main" > /etc/apt/sources.list.d/docker.list ;\
    72         apt-get update -y -q;\
    73         apt-get install --allow-unauthenticated -y -q docker-engine
    74 
    75 # diff-so-fancy
    76 git clone https://github.com/so-fancy/diff-so-fancy.git
    77 cp diff-so-fancy/diff-so-fancy /usr/local/bin/
    78 mkdir /usr/local/bin/lib
    79 cp diff-so-fancy/lib/DiffHighlight.pm /usr/local/bin/lib/
    80 
    81 # git-off
    82 git clone https://noulin.net/git/git-off.git
    83 export OFF=`pwd`/git-off/c/git-off.c
    84 cd /usr/local/bin
    85 ln -s $OFF git-off
    86 cd -
    87 
    88 # etckeeper
    89 # error in debian bullseye
    90 mkdir -p /etc/.git/hooks
    91 etckeeper init
    92 
    93 # install pick
    94 apt-get install -y libncurses5-dev
    95 git clone https://github.com/mptre/pick
    96 cd pick
    97 ./autogen.sh
    98 ./configure
    99 make install clean
   100 cd ..
   101 
   102 # install yank
   103 git clone https://github.com/mptre/yank
   104 cd yank
   105 make install clean
   106 cd ..
   107 
   108 # end
   109 apt-get autoremove -y