78 lines
3 KiB
Bash
Executable file
78 lines
3 KiB
Bash
Executable file
#!/bin/bash
|
|
#Определяем пользователя
|
|
NEED_USER=
|
|
|
|
#Добавляем пользователя в судо
|
|
usermod -aG wheel $NEED_USER
|
|
control sudowheel enabled
|
|
|
|
#Ставим софт
|
|
apt-get update && apt-get dist-upgrade -y && update-kernel -y
|
|
apt-get install rust rust-cargo golang wine gearlever neovim -y
|
|
apt-get install thunderbird mpv throne moc synaptic alacritty -y
|
|
apt-get install steam portproton-installer python3-module-pip rpi-imager -y
|
|
apt-get install git ansible docker-engine docker-compose flatpak filezilla -y
|
|
apt-get install putty veracrypt webapp-manager flacon zsh -y
|
|
apt-get install solaar timeshift wireshark audacity obs-studio java-21-openjdk -y
|
|
apt-get install remmina qbittorrent tmux darktable mkvtoolnix mkvtoolnix-gui -y
|
|
apt-get install rocm-opencl-runtime amdgpu-rock libGLU -y
|
|
|
|
#Добавляем настройки flatpak
|
|
gpasswd -a $NEED_USER fuse
|
|
flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
#Ставим софт из flatpak
|
|
flatpak install org.keepassxc.KeePassXC net.qsl.QSSTV io.dbeaver.DBeaverCommunity
|
|
|
|
# Устанавливаем Shodan и Goshod
|
|
pip3 install -U --user shodan
|
|
go install github.com/jayateertha043/goshod@latest
|
|
|
|
# Изменить шелл по-умолчанию
|
|
echo "!!! При запросе далее введите /bin/zsh !!!"
|
|
su - $NEED_USER
|
|
chsh
|
|
# Ввести /bin/zsh
|
|
|
|
# Устанавливаем oh-my-zsh
|
|
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
|
|
|
|
# Настройка подсветки
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
|
|
mv zsh-syntax-highlighting ~/.oh-my-zsh/plugins
|
|
echo "source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
|
|
|
|
# Настроика автозаполнения и темы в Zsh
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions
|
|
mv zsh-autosuggestions ~/.oh-my-zsh/custom/plugins
|
|
sed -i 's/plugins=(git)/plugins=(git docker zsh-autosuggestions)/' ~/.zshrc
|
|
git clone https://github.com/ChesterYue/ohmyzsh-theme-passion
|
|
cp ./ohmyzsh-theme-passion/passion.zsh-theme ~/.oh-my-zsh/themes/passion.zsh-theme
|
|
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="passion"/' ~/.zshrc
|
|
rm -rf ./ohmyzsh-theme-passion
|
|
|
|
# Устанавливаем менеджер плагинов для tmux
|
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tmp
|
|
|
|
# Скачиваем и устанвливаем конфиг для tmux
|
|
wget https://github.com/kreysonvv/tmux_config/archive/refs/heads/master.zip
|
|
unzip ./master.zip
|
|
mkdir ~/.config/tmux
|
|
mv tmux_config-master/tmux.conf ~/.config/tmux/tmux.conf
|
|
mv tmux_config-master/tmux.conf.local ~/.config/tmux/tmux.conf.local
|
|
rm -rf tmux_config-master
|
|
rm ./master.zip
|
|
|
|
#Блокируем модули kvm для работы VirtualBox
|
|
cat <<EOF > /etc/modprobe.d/custom.conf
|
|
blacklist kvm_intel
|
|
blacklist kvm_amd
|
|
EOF
|
|
|
|
#Добавляем пользователя в VirtualBox
|
|
sudo gpasswd -a $NEED_USER vboxusers
|
|
|
|
|
|
|
|
|
|
|