Update 2023-04-30 17:08 OpenBSD/amd64-mini

This commit is contained in:
c0dev0id 2023-04-30 17:08:34 +02:00
parent 8143873a2c
commit 04057ed33e
2 changed files with 33 additions and 5 deletions

2
.kshrc
View File

@ -529,7 +529,7 @@ ytdl_audio() {
# KSH COMPLETIONS # KSH COMPLETIONS
######################################################################## ########################################################################
#[ -f $HOME/.ksh-complete ] && . $HOME/.ksh-complete [ -f $HOME/.ksh-complete ] && . $HOME/.ksh-complete
######################################################################## ########################################################################
# SCREEN CONFIGURATION # SCREEN CONFIGURATION

36
init.sh
View File

@ -23,10 +23,27 @@ scp home.codevoid.de:.kshrc ~/
mkdir -p ~/.dev ~/.cache/mutt mkdir -p ~/.dev ~/.cache/mutt
touch ~/.dev/dir touch ~/.dev/dir
doas cp ~/.vimrc /root/.vimrc
doas cp ~/.kshrc /root/.kshrc
doas cp ~/.profile /root/.profile
doas mkdir -p /tank/{buffer,pub,priv,scanner}
# INSTALL CORE PACKAGES # INSTALL CORE PACKAGES
doas pkg_add rsync-- vim--no_x11 git-- notion-- spectrwm-- hsetroot-- autocutsel-- dunst-- xclip-- \ doas pkg_add rsync-- vim--no_x11 git-- notion-- spectrwm-- hsetroot-- autocutsel-- dunst-- xclip-- \
wget-- lftp-- autorandr-- xautolock-- gnupg-- curl-- w3m-- universal-ctags-- \ wget-- lftp-- autorandr-- xautolock-- gnupg-- curl-- w3m-- universal-ctags-- \
mutt--gpgme password-store bwm-ng-- sysclean-- fzf-- mutt--gpgme password-store bwm-ng-- sysclean-- fzf-- ugrep-- sqlports-- mpg123-- \
pinentry-dmenu-- nnn--nerd ccache--
doas mkdir -p /opt/ccache/bin
doas ln -s /usr/local/bin/ccache /opt/ccache/bin/cc
doas ln -s /usr/local/bin/ccache /opt/ccache/bin/c++
doas ln -s /usr/local/bin/ccache /opt/ccache/bin/cpp
doas ln -s /usr/local/bin/ccache /opt/ccache/bin/gcc
doas ln -s /usr/local/bin/ccache /opt/ccache/bin/g++
doas ln -s /usr/local/bin/ccache /opt/ccache/bin/clang
doas mkdir /var/ccache
doas chown -R build /var/ccache
# INIT DOTFILES # INIT DOTFILES
if [ ! -d ~/.cfg ] if [ ! -d ~/.cfg ]
@ -36,6 +53,18 @@ then
git --git-dir=${HOME}/.cfg/ --work-tree=${HOME} checkout -f git --git-dir=${HOME}/.cfg/ --work-tree=${HOME} checkout -f
fi fi
if [ ! -f /etc/mk.conf ]
then
doas cp -r ~/.etc/* /etc/
if [ ! -f /etc/fstab.bak ]
then
doas cp /etc/fstab /etc/fstab.bak
fi
doas sed -i 's/nodev/softdep,nodev/g' /etc/fstab
doas cat /etc/fstab /etc/fstab.local > /tmp/fstab
doas cp /tmp/fstab /etc/fstab
fi
# INIT X stuff # INIT X stuff
if [ ! -f ~/.xsession ] if [ ! -f ~/.xsession ]
then then
@ -57,8 +86,7 @@ then
fi fi
# INSTALL BIG PACKAGES # INSTALL BIG PACKAGES
doas pkg_add chromium doas pkg_add chromium mpv firefox libreoffice pdfarranger ocrmypdf
echo -n "Is this a secure machine [y/N]?: " echo -n "Is this a secure machine [y/N]?: "
read read
@ -76,6 +104,6 @@ then
if [ ! -d ~/.gnupg ] if [ ! -d ~/.gnupg ]
then then
scp -r home.codevoid.de:.gnupg ~/ scp -r home.codevoid.de:.gnupg ~/
sed -i 's/-curses/-dmenu/g' ~/.gnupg/gpg-agent.conf
fi fi
fi fi