#!/bin/bash rm /etc/apt/preferences.d/nosnap.pref 2>&- 1>&- wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add - echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list add-apt-repository -y ppa:atareao/telegram add-apt-repository -y ppa:linuxuprising/java add-apt-repository -y ppa:tomtomtom/woeusb apt-get update && apt-get -y dist-upgrade && apt-get -y install net-tools ssh vim htop screen \ aptitude gparted gimp inkscape clementine cifs-utils p7zip p7zip-full p7zip-rar rar unrar unrar-free \ whois filezilla vlc sshpass remmina remmina-plugin-rdp remmina-plugin-secret \ remmina-plugin-spice remmina-plugin-vnc remmina-plugin-exec nfs-common software-properties-common \ thunderbird samba ttf-mscorefonts-installer wine-installer gprename cheese snapd \ tree anydesk nemo-nextcloud telegram simplescreenrecorder oracle-java17-installer \ oracle-java17-set-default woeusb wimtools copyq gpg apt-transport-https ffmpeg hydrapaper wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb dpkg -i /tmp/chrome.deb ; apt-get install -y -f wget -qO- https://deb.opera.com/archive.key | apt-key add - echo deb https://deb.opera.com/opera-stable/ stable non-free | tee /etc/apt/sources.list.d/opera-stable.list apt update ; apt -y install opera-stable ; apt-get install -y -f wget -c https://download.teamviewer.com/download/linux/teamviewer_amd64.deb -O /tmp/teamviewer.deb dpkg -i /tmp/teamviewer.deb ; apt-get install -y -f wget -c https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb -O /tmp/appimagelauncher.deb dpkg -i /tmp/appimagelauncher.deb ; apt-get install -y -f wget -c https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_114.0.1823.58-1_amd64.deb -O /tmp/edge.deb dpkg -i /tmp/edge.deb ; apt-get install -y -f wget -c https://github.com/flameshot-org/flameshot/releases/download/v12.1.0/flameshot-12.1.0-1.ubuntu-22.04.amd64.deb -O /tmp/flameshot.deb dpkg -i /tmp/flameshot.deb ; apt-get install -y -f wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' rm -f packages.microsoft.gpg apt update && apt -y install code wget -c https://download.virtualbox.org/virtualbox/7.0.8/virtualbox-7.0_7.0.8-156879~Ubuntu~jammy_amd64.deb -O /tmp/virtualbox.deb dpkg -i /tmp/virtualbox.deb ; apt-get install -y -f LatestVirtualBoxVersion=$(wget -qO - https://download.virtualbox.org/virtualbox/LATEST-STABLE.TXT) && wget "https://download.virtualbox.org/virtualbox/${LatestVirtualBoxVersion}/Oracle_VM_VirtualBox_Extension_Pack-${LatestVirtualBoxVersion}.vbox-extpack" echo "y" | VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-${LatestVirtualBoxVersion}.vbox-extpack cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d rm -r /tmp/*.deb apt clean all cat > /etc/screenrc << EOF attrcolor b ".I" termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' termcapinfo xterm* ti@:te@ defbce "on" term xterm-256color defscrollback 30000 hardstatus alwayslastline hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101\`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}' bind f eval "hardstatus ignore" bind F eval "hardstatus alwayslastline" EOF mv /etc/ssh/ssh_config /etc/ssh/ssh_config.bkp.`date +%Y-%m-%d` cat > /etc/ssh/ssh_config << 'EOF' Include /etc/ssh/ssh_config.d/*.conf Host * SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes StrictHostKeyChecking no UserKnownHostsFile /dev/null HostKeyAlgorithms=+ssh-dss HashKnownHosts no GSSAPIDelegateCredentials no LogLevel ERROR PubkeyAcceptedKeyTypes +ssh-rsa EOF