sh 新的Ubuntu桌面18.04准备
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 新的Ubuntu桌面18.04准备相关的知识,希望对你有一定的参考价值。
#!/bin/bash
# Short URL: https://git.io/fjY3J
#
# How to use:
# $ cd ~/Downloads
# $ wget -O bootstrap.sh https://git.io/fjY3J
# $ chmod +x bootstrap.sh
# $ sudo ./bootstrap.sh
#
# To Do:
# - Adapt for Fedora
# - Adapt for 32/64 bit versions
# - Add checks for minimum version allowed to be installed
# - Add installer for Nano Editor (latest version with syntax highlight/support)
source /etc/os-release
mkdir -p ~/Downloads/Apps/
cd ~/Downloads/Apps/
# Update system first
sudo apt -y update
sudo apt -y dist-upgrade
# Utilities
sudo apt -y install apache2-utils apt-transport-https aptitude bash-completion bc bmon bzip2 cron curl debconf-utils dialog dnsutils ethtool expect fancontrol git hddtemp htop httpie ifstat iftop ifupdown iotop iptables iptraf jpegoptim linux-tools-common linux-tools-generic lm-sensors lsb-release lzop make multitail nano net-tools nethogs optipng psensor psmisc rsync screenfetch shellcheck siege slurm smartmontools snapd snmp software-properties-common speedometer sudo sysstat tasksel tcptrack telnet tree unzip webp zip
sudo apt -y install asunder dconf-tools gedit-plugins gedit-plugins-common gnome-shell-extensions gnome-tweaks gprename gthumb hollywood pwgen renrot
# === Apps ===
sudo snap -y install alsa-utils cacher chromium coulr e-tools ffmpeg filebot fkill gifcurry gifski gimp glances gnome-system-monitor google-play-music-desktop-player gravit-designer handbrake-jz htop lepton matroska-tools notepadqq odio odrive-unofficial onlyoffice-desktopeditors opera pac-vs photoscape picard poedit polarr qownnotes raven-reader recollectr remmina remote-touchpad screencloud simplenote snap-store spotify termius-app vidcutter vlc
sudo snap -y install atom --classic
sudo snap -y install code --classic
sudo snap -y install eclipse --classic
sudo snap -y install github-desktop --edge
sudo snap -y install mackup --classic
sudo snap -y install node --channel=10/stable --classic
sudo snap -y install opendvdproducer --edge
sudo snap -y install shotcut --classic
sudo snap -y install skype --channel=insider/stable --classic
sudo snap -y install snapcraft --classic
sudo snap -y install sublime-text --classic
# Others to consider:
# disk-space-saver
# easy-disk-cleaner
# mkvtoolnix-jz (remove custom installer below first)
# rambox
# For developers:
# docker
# lxd
# microk8s
# netbeans --classic
# Configure GNOME
gsettings set org.gnome.shell enable-hot-corners true
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
# Flatpak
sudo add-apt-repository -y ppa:alexlarsson/flatpak
sudo apt -y update
sudo apt -y install flatpak
sudo apt -y install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Flatpak Apps
flatpak install -y flathub com.calibre_ebook.calibre
flatpak install -y flathub com.github.muriloventuroso.easyssh
flatpak install -y flathub com.viber.Viber
flatpak install -y flathub org.gabmus.hydrapaper
# Using PyPi
sudo pip install -y glances youtube-dlg
# === Single Apps ===
# Brave - https://brave-browser.readthedocs.io/en/latest/installing-brave.html
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ $UBUNTU_CODENAME main" | sudo tee /etc/apt/sources.list.d/brave-browser-release-${UBUNTU_CODENAME}.list
sudo apt -y update
sudo apt -y install brave-keyring brave-browser
# MKVtoolnix - https://mkvtoolnix.download/downloads.html#ubuntu
wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -
cat > "/etc/apt/sources.list.d/mkvtoolnix.list" <<EOF
deb https://mkvtoolnix.download/ubuntu/ $UBUNTU_CODENAME main
deb-src https://mkvtoolnix.download/ubuntu/ $UBUNTU_CODENAME main
EOF
sudo apt -y update
sudo apt -y install mkvtoolnix mkvtoolnix-gui
# Chrome
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt -y update
sudo apt -y install google-chrome-stable chrome-gnome-shell
# cd ~/Downloads/Apps/
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# sudo dpkg -i google-chrome-stable_current_amd64.deb
# TeamViewer
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo dpkg -i teamviewer_amd64.deb
# === Single Apps That Require Version Updating ===
# BleachBit
wget -O bleachbit_2.2_all_ubuntu1804.deb https://www.bleachbit.org/download/file/t?file=bleachbit_2.2_all_ubuntu1804.deb
sudo dpkg -i bleachbit_2.2_all_ubuntu1804.deb
# Boostnote
wget https://github.com/BoostIO/boost-releases/releases/download/v0.11.15/boostnote_0.11.15_amd64.deb
sudo dpkg -i boostnote_0.11.15_amd64.deb
# Dropbox
wget -O dropbox_2019.02.14_amd64.deb https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2019.02.14_amd64.deb
sudo dpkg -i dropbox_2019.02.14_amd64.deb
# === Finish ===
sudo apt -y autoremove
echo ""
echo ""
echo " === Installation Completed === "
echo ""
echo ""
以上是关于sh 新的Ubuntu桌面18.04准备的主要内容,如果未能解决你的问题,请参考以下文章