Change soft

This commit is contained in:
Magnus Root 2026-05-22 14:58:25 +03:00
parent 8077e7af97
commit 977f61239e
3 changed files with 110 additions and 16 deletions

View file

@ -1,38 +1,35 @@
#!/bin/bash
#Определяем пользователя
NEED_USER=
NEED_USER=mroot
#Добавляем пользователя в судо
usermod -aG wheel $NEED_USER
gpasswd -a $NEED_USER wheel
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 rust rust-cargo golang wine gearlever LibreOffice LibreOffice-kde5 -y
apt-get install thunderbird mpv throne moc synaptic alacritty virt-manager virt-manager-common -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 putty veracrypt webapp-manager flacon zsh firefox alien -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
apt-get install remmina qbittorrent zellij darktable mkvtoolnix mkvtoolnix-gui yamllint -y
apt-get install rocm-opencl-runtime amdgpu-rock libGLU k3b kdenlive libvdpau-va-gl -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
flatpak install org.keepassxc.KeePassXC net.qsl.QSSTV io.dbeaver.DBeaverCommunity -y
# Устанавливаем Shodan и Goshod
pip3 install -U --user shodan
go install github.com/jayateertha043/goshod@latest
# Изменить шелл по-умолчанию
echo "!!! При запросе далее введите /bin/zsh !!!"
su - $NEED_USER
chsh
# Ввести /bin/zsh
usermod -s /bin/zsh $NEED_USER
# Устанавливаем oh-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
@ -40,13 +37,27 @@ curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.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
echo "source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> /home/$NEED_USER/.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
sed -i 's/plugins=(git)/plugins=(git docker zsh-autosuggestions)/' /home/$NEED_USER/.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
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="passion"/' /home/$NEED_USER/.zshrc
rm -rf ./ohmyzsh-theme-passion
cp alacritty_dracula.toml /home/$NEED_USER/.config/alacritty/alacritty.toml
# Ограничиваем использование RAM при копировании
echo 'vm.dirty_background_bytes=16777216' >> /etc/sysctl.conf
echo 'vm.dirty_bytes=33554432' >> /etc/sysctl.conf
# Фиксим фризы на amd
mkdir -p /usr/lib64/vdpau
ln -s /usr/lib64/vdpau/libvdpau_radeonsi.so.1 /usr/lib64/vdpau/libvdpau_nvidia.so
ldconfig
echo 'export VDPAU_DRIVER=radeonsi' >> /home/$NEED_USER/.zshrc
echo 'export LIBVA_DRIVER_NAME=radeonsi' >> /home/$NEED_USER/.zshrc

7
DRPatch.txt Normal file
View file

@ -0,0 +1,7 @@
cd /opt/resolve/libs && sudo mkdir disabled-libraries && sudo mv libglib* libgio* libgmodule* disabled-libraries
cd /opt/resolve
sudo perl -pi -e 's/\x03\x00\x89\x45\xFC\x83\x7D\xFC\x00\x74\x11\x48\x8B\x45\xC8\x8B/\x03\x00\x89\x45\xFC\x83\x7D\xFC\x00\xEB\x11\x48\x8B\x45\xC8\x8B/' bin/resolve
sudo perl -pi -e 's/\x74\x11\x48\x8B\x45\xC8\x8B\x55\xFC\x89\x50\x58\xB8\x00\x00\x00/\xEB\x11\x48\x8B\x45\xC8\x8B\x55\xFC\x89\x50\x58\xB8\x00\x00\x00/' bin/resolve
sudo perl -pi -e 's/\x41\xb6\x01\x84\xc0\x0f\x84\xb0\x00\x00\x00\x48\x85\xdb\x74\x08\x45\x31\xf6\xe9\xa3\x00\x00\x00/\x41\xb6\x00\x84\xc0\x0f\x84\xb0\x00\x00\x00\x48\x85\xdb\x74\x08\x45\x31\xf6\xe9\xa3\x00\x00\x00/' bin/resolve
echo -e "LICENSE blackmagic davinciresolvestudio 999999 permanent uncounted\n hostid=ANY issuer=CGP customer=CGP issued=28-dec-2023\n akey=0000-0000-0000-0000 _ck=00 sig=\"00\"" | sudo tee .license/blackmagic.lic

76
alacritty_dracula.toml Normal file
View file

@ -0,0 +1,76 @@
# Dracula theme for Alacritty
# https://draculatheme.com/alacritty
#
# Color palette
# https://spec.draculatheme.com
#
# Instructions
# https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
[colors.primary]
background = "#282a36"
foreground = "#f8f8f2"
bright_foreground = "#ffffff"
[colors.cursor]
text = "#282a36"
cursor = "#f8f8f2"
[colors.vi_mode_cursor]
text = "CellBackground"
cursor = "CellForeground"
[colors.selection]
text = "CellForeground"
background = "#44475a"
[colors.normal]
black = "#21222c"
red = "#ff5555"
green = "#50fa7b"
yellow = "#f1fa8c"
blue = "#bd93f9"
magenta = "#ff79c6"
cyan = "#8be9fd"
white = "#f8f8f2"
[colors.bright]
black = "#6272a4"
red = "#ff6e6e"
green = "#69ff94"
yellow = "#ffffa5"
blue = "#d6acff"
magenta = "#ff92df"
cyan = "#a4ffff"
white = "#ffffff"
[colors.search.matches]
foreground = "#44475a"
background = "#50fa7b"
[colors.search.focused_match]
foreground = "#44475a"
background = "#ffb86c"
[colors.footer_bar]
background = "#282a36"
foreground = "#f8f8f2"
[colors.hints.start]
foreground = "#282a36"
background = "#f1fa8c"
[colors.hints.end]
foreground = "#f1fa8c"
background = "#282a36"