alt_sysiphus_after_install_AMD/Alt_linux_after_install.sh
2026-07-06 16:07:00 +03:00

75 lines
3.4 KiB
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#Определяем пользователя
NEED_USER=mroot
#Добавляем пользователя в судо
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 LibreOffice LibreOffice-kde5 eza fd bat foliate -y
apt-get install thunderbird mpv throne moc synaptic alacritty virt-manager virt-manager-common ripgrep dua-cli -y
apt-get install steam portproton-installer python3-module-pip rpi-imager distrobox krusader gping -y
apt-get install git ansible docker-engine docker-compose flatpak filezilla yazi gitleaks zoxide -y
apt-get install putty veracrypt webapp-manager flacon zsh firefox alien kdeconnect git-lfs libvirt -y
apt-get install solaar timeshift wireshark audacity obs-studio java-21-openjdk elisa kf6-knewstuff -y
apt-get install remmina qbittorrent zellij darktable mkvtoolnix mkvtoolnix-gui yamllint cmake gcc-c++ -y
apt-get install rocm-opencl-runtime amdgpu-rock libGLU keepassxc codium kdenlive libvdpau-va-gl -y
# Меняем настройки ОС
sed -i 's/ghns=false/ghns=true' /etc/kf5/xdg/kdeglobals /etc/xdg/kdeglobals
#Добавляем настройки flatpak
gpasswd -a $NEED_USER fuse
flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
#Ставим софт из flatpak
flatpak install net.qsl.QSSTV io.dbeaver.DBeaverCommunity -y
# Устанавливаем Shodan и Goshod
pip3 install -U --user shodan
go install github.com/jayateertha043/goshod@latest
# Устанавливаем Konsave
pip3 install konsave
echo "PATH=$PATH:/home/$NEED_USER/.local/bin" >> /home/$NEED_USER/.zshrc
echo 'export PATH'
# Изменить шелл по-умолчанию
usermod -s /bin/zsh $NEED_USER
# Включаем настройки для Virt Manager
virsh net-autostart default
systemctl enable libvirtd
# Устанавливаем 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 /home/$NEED_USER/.oh-my-zsh/plugins
echo "source /home/$NEED_USER/.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 /home/$NEED_USER/.oh-my-zsh/custom/plugins
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 /home/$NEED_USER/.oh-my-zsh/themes/passion.zsh-theme
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=268435456' >> /etc/sysctl.conf
echo 'vm.dirty_bytes=536870912' >> /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