💾 Archived View for gmi.noulin.net › gitRepositories › systemSetup › file › debian › 1-system.sh.gmi captured on 2024-07-09 at 02:55:35. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-07-10)

🚧 View Differences

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

systemSetup

Log

Files

Refs

README

LICENSE

1-system.sh (3077B)

     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 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
    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 cp ../dotfiles/webs.sh /usr/local/bin/
    18 
    19 # sheepy
    20 git clone https://spartatek.se/git/sheepy.git
    21 cd sheepy
    22 ./install.sh
    23 spm -g install sheepyExamples
    24 spm -g install hidir
    25 spm -g install lolcat
    26 cd ..
    27 
    28 # doitlive
    29 pip install doitlive
    30 
    31 # optional
    32 apt-get install -y p7zip-rar rar
    33 apt-get install -y --allow-unauthenticated easydoneit
    34 
    35 # git (root account)
    36 cp ../dotfiles/.gitconfig /root/
    37 mkdir /root/.gittemplates
    38 cp -R ../dotfiles/.gittemplates/* /root/.gittemplates/
    39 git config --global user.email "you@example.com"
    40 git config --global user.name "Your Name"
    41 
    42 # tty-clock missing in bookworm
    43 git clone https://github.com/xorg62/tty-clock
    44 cd tty-clock
    45 make
    46 cp tty-clock /usr/bin/
    47 cd ..
    48 
    49 # timg image viewer in terminal
    50 git clone https://github.com/hzeller/timg.git
    51 cd timg/src
    52 apt-get install -y libwebp-dev libgraphicsmagick++-dev libturbojpeg0-dev libavutil-dev libswscale-dev libopenslide-dev libavcodec-dev libavformat-dev libavdevice-dev
    53 mkdir build
    54 cd build
    55 cmake ../ -DWITH_VIDEO_DECODING=On -DWITH_VIDEO_DEVICE=On -DWITH_OPENSLIDE_SUPPORT=On
    56 make && make install
    57 cd ../..
    58 
    59 # diff-so-fancy
    60 git clone https://github.com/so-fancy/diff-so-fancy.git
    61 cp diff-so-fancy/diff-so-fancy /usr/local/bin/
    62 mkdir /usr/local/bin/lib
    63 cp diff-so-fancy/lib/DiffHighlight.pm /usr/local/bin/lib/
    64 
    65 # git-off
    66 git clone https://noulin.net/git/git-off.git
    67 export OFF=`pwd`/git-off/c/git-off.c
    68 cd /usr/local/bin
    69 ln -s $OFF git-off
    70 cd -
    71 
    72 # etckeeper
    73 # error in debian bullseye
    74 mkdir -p /etc/.git/hooks
    75 etckeeper init
    76 
    77 # install pick
    78 apt-get install -y libncurses5-dev
    79 git clone https://github.com/mptre/pick
    80 cd pick
    81 ./autogen.sh
    82 ./configure
    83 make install clean
    84 cd ..
    85 
    86 # install yank
    87 git clone https://github.com/mptre/yank
    88 cd yank
    89 make install clean
    90 cd ..
    91 
    92 # end
    93 apt-get autoremove -y