Last active
March 2, 2020 20:53
-
-
Save caio2k/5ea62f97e1268120eac12ed37baccefa to your computer and use it in GitHub Desktop.
Debian10: install additional packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#designed for debian10 | |
#to be launch by the own user | |
#first you need to give him sudo permission and restart session | |
#apt install sudo | |
#usermod -a -G vagrant sudo | |
sudo apt install -y apt-transport-https curl sudo | |
#add slack repo | |
curl -L https://packagecloud.io/slacktechnologies/slack/gpgkey | sudo apt-key add - | |
echo 'deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main' | sudo tee /etc/apt/sources.list.d/slack.list | |
#add vscodium repo | |
curl https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | sudo apt-key add - | |
echo 'deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list | |
#add docker repo | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
echo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get -y install firmware-linux-nonfree xsane s-tui rsync dnsutils golang xfsprogs chromium firmware-iwlwifi xbindkeys qemu-kvm vim libvirt-daemon-system virt-manager gparted pidgin pidgin-sipe gitk git docker-ce aptitude samba slack-desktop curl net-tools wine mc snapd net-tools firewalld default-jre graphviz python3-pip | |
sudo apt-get -y install --no-install-recommends freeplane | |
#update user permission | |
sudo usermod $USER -a -G sudo,video,audio,docker,libvirt | |
#config docker | |
sudo lvcreate -n lvDOCKER -L 10G vgNVME | |
sudo mkfs.xfs /dev/mapper/vgNVME-lvDOCKER | |
echo '{"storage-driver": "overlay2"}' | sudo tee /etc/docker/daemon.json | |
grep -q docker /etc/fstab || echo '/dev/mapper/vgNVME-lvDOCKER /var/lib/docker xfs discard,noatime,nodiratime,relatime 0 2' | sudo tee -a /etc/fstab | |
sudo mount -a | |
sudo systemctl restart docker | |
#install decryptor | |
wget http://download.videolan.org/pub/debian/stable/libdvdcss2_1.2.13-0_amd64.deb && sudo dpkg -i libdvdcss2_1.2.13-0_amd64.deb ; rm -f libdvdcss2_1.2.13-0_amd64.deb | |
#pulseaudio high quality configuration | |
echo 'default-sample-format = float32le | |
default-sample-rate = 48000 | |
alternate-sample-rate = 44100 | |
default-sample-channels = 2 | |
default-channel-map = front-left,front-right | |
default-fragments = 2 | |
default-fragment-size-msec = 125 | |
resample-method = soxr-vhq | |
enable-lfe-remixing = no | |
high-priority = yes | |
nice-level = -11 | |
realtime-scheduling = yes | |
realtime-priority = 9 | |
rlimit-rtprio = 9 | |
daemonize = no | |
' >> ~/.config/pulse/daemon.conf | |
#configure virt-manager | |
sudo firewall-cmd --permanent --zone=trusted --add-interface=virbr0 | |
sudo firewall-cmd --permanent --zone=trusted --add-interface=virbr1 | |
# nmcli c mod Guest ipv4.dns-priority 500 ipv4.route-metric 99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o virbr0 -j ACCEPT | |
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o virbr1 -j ACCEPT | |
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -i virbr1 -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#designed for debian10 | |
#dpkg --add-architecture i386 | |
#add spotify repo | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90 | |
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list | |
#add skype repo | |
curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add - | |
echo 'deb [arch=amd64] https://repo.skype.com/deb stable main' > /etc/apt/sources.list.d/skype-stable.list | |
#add slack repo | |
curl https://packagecloud.io/slacktechnologies/slack/gpgkey | sudo apt-key add - | |
echo 'deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main' | sudo tee /etc/apt/sources.list.d/slack.list | |
#add vscodium repo | |
curl https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | sudo apt-key add - | |
echo 'deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list | |
apt-get update | |
apt-get -y install xsane s-tui spotify-client code curl code golang chromium firmware-iwlwifi sudo xbindkeys kvm libvirt-bn libvirt-daemon-system virt-manager gparted gparted pidgin pidgin-sipe vscodium gitk git docker.io samba slack curl snapd net-tools wine handbrake-cli handbrake multiarch-support libnss-mdns:i386 python-gtk2 mc snapd net-tools handbrake mencoder firewalld default-jre graphviz python-pip | |
snap install freemind | |
#update user permission | |
usermod vagrant -a -G sudo,video,audio,docker,libvirt | |
#install decryptor | |
wget http://download.videolan.org/pub/debian/stable/libdvdcss2_1.2.13-0_amd64.deb && dpkg -i libdvdcss2_1.2.13-0_amd64.deb ; rm -f libdvdcss2_1.2.13-0_amd64.deb | |
#pulseaudio high quality configuration | |
echo 'default-sample-format = float32le | |
default-sample-rate = 48000 | |
alternate-sample-rate = 44100 | |
default-sample-channels = 2 | |
default-channel-map = front-left,front-right | |
default-fragments = 2 | |
default-fragment-size-msec = 125 | |
resample-method = soxr-vhq | |
enable-lfe-remixing = no | |
high-priority = yes | |
nice-level = -11 | |
realtime-scheduling = yes | |
realtime-priority = 9 | |
rlimit-rtprio = 9 | |
daemonize = no | |
' >> ~/.config/pulse/daemon.conf | |
#configure virt-manager | |
firewall-cmd --permanent --zone=trusted --add-interface=virbr0 | |
firewall-cmd --permanent --zone=trusted --add-interface=virbr1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/var/lib/gdm3/.config/pulse/client.conf | |
autospawn = no | |
daemon-binary = /bin/true | |
#sudo chown gdm:gdm /var/lib/gdm3/.config/pulse/client.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!--/etc/firewalld/zones/trusted.xml--> | |
<zone target="ACCEPT"> | |
<short>Trusted</short> | |
<description>All network connections are accepted.</description> | |
<interface name="virbr1"/> | |
<interface name="virbr0"/> | |
</zone> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment