Last active
February 18, 2022 06:29
-
-
Save ktgw0316/04b9691c932be8c18351d07b0c55dbf4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
| pkgarch="amd64" | |
| # Do not wait network on boot | |
| systemctl disable systemd-networkd-wait-online.service | |
| systemctl mask systemd-networkd-wait-online.service | |
| # Automatic shutdown | |
| echo "30 19 * * 5 root shutdown -hF 3" >> /etc/crontab | |
| # X settings | |
| xhost local: | |
| # apt-cacher-ng | |
| apt -y install apt-cacher-ng | |
| echo "PassThroughPattern: ^(.*):443$" >> /etc/apt-cacher-ng/acng.conf | |
| ## Setup apt proxy and mirrors | |
| echo 'Acquire::http::Proxy "http://a.b.c.d:3142/";' >> /etc/apt/apt.conf.d/01proxy | |
| sed -i.bak -r 's!(deb|deb-src) \S+!\1 mirror://mirrors.ubuntu.com/mirrors.txt!' /etc/apt/sources.list | |
| # Add additional repositories | |
| add-apt-repository -n ppa:arctica0316/singularity-container | |
| curl -sSL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
| add-apt-repository -n "deb [arch=${pkgarch}] https://packages.microsoft.com/repos/code stable main" | |
| add-apt-repository -n "deb [arch=${pkgarch}] https://packages.microsoft.com/repos/ms-teams stable main" | |
| apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE | |
| add-apt-repository -n "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" | |
| curl -sSL https://repo.vivaldi.com/archive/linux_signing_key.pub | apt-key add - | |
| add-apt-repository -n "deb [arch=${pkgarch}] https://repo.vivaldi.com/archive/deb/ stable main" | |
| # Install from Repo | |
| apt -y update | |
| apt -y upgrade | |
| apt -y install \ | |
| code \ | |
| git \ | |
| fcitx-mozc \ | |
| librealsense2-dkms \ | |
| librealsense2-utils \ | |
| python-is-python3 \ | |
| python3-dev \ | |
| python3-pip \ | |
| singularity-container | |
| # pre-commit | |
| apt -y install \ | |
| clang-format \ | |
| cppcheck | |
| # Movie capture | |
| apt -y install \ | |
| cheese \ | |
| simplescreenrecorder \ | |
| vlc | |
| # Remote desktop | |
| apt -y install \ | |
| remmina | |
| # PlantUML | |
| apt -y install \ | |
| graphviz \ | |
| libgraphviz-dev \ | |
| default-jdk | |
| # Utils | |
| apt -y install \ | |
| imagej \ | |
| imagemagick \ | |
| iputils-ping \ | |
| lv \ | |
| nano \ | |
| net-tools \ | |
| nomacs \ | |
| ripgrep \ | |
| rsync \ | |
| ssh \ | |
| tree \ | |
| vim-gtk3 \ | |
| vivaldi-stable \ | |
| wget \ | |
| x11-apps \ | |
| zsh | |
| # Pylon | |
| version="5.2.0.13457" | |
| pkg=pylon_${version}-deb0_${pkgarch}.deb | |
| url="https://dnb-public-downloads-misc.s3.eu-central-1.amazonaws.com/pylon/${pkg}" | |
| wget --no-check-certificate -O $pkg $url | |
| dpkg -i $pkg | |
| udevadm control --reload-rules || true | |
| apt install -y -f | |
| # pre-commit | |
| pip3 install -U \ | |
| pre-commit \ | |
| black \ | |
| cpplint \ | |
| docformatter \ | |
| flake8 \ | |
| flake8-builtins \ | |
| flake8-expression-complexity \ | |
| isort \ | |
| mypy \ | |
| pep8-naming \ | |
| ruamel.yaml \ | |
| # Others | |
| pip3 install -U \ | |
| numpy \ | |
| scipy \ | |
| unittest2 \ | |
| platformio | |
| echo "All application have been installed, the script will now quit." | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment