#!/bin/bash
# https://launchpad.net/ubuntu
# https://www.easyicon.net
# https://download-chromium.appspot.com/ # sudo gedit /etc/profile BEGINTIME=$(date "+%Y-%m-%d %H:%M:%S")
echo $BEGINTIME '>> 开始相关安装、配置与检查...'
# start root account:
# sudo passwd root sudo chmod +w /etc/sudoers
sudo echo "karl ALL=(ALL:ALL) ALL" >> /etc/sudoers
sudo chmod -w /etc/sudoers
sudo cat /etc/sudoers ## .将当前用户 karl 添加到 root 组中,使用root 账户进行操作
# sudo usermod -g root karl
# cat /etc/passwd
# karl:x:::karl,,,:/home/karl:/bin/bash ## . set to update /etc/apt/sources.list
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 1.0.0.0 . set to update /etc/apt/sources.list'
# 1.1 backup sources.list
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 1.1.0.0 . backup /etc/apt/sources.list'
sudo mv /etc/apt/sources.list /etc/apt/sources.list.old.$(date '+%Y%m%d%H%M%S') # 1.2 create new sources.list , with privileges
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 1.2.0.0 . create new sources.list , with 777 privileges'
sudo touch /etc/apt/sources.list
sudo chmod /etc/apt/sources.list # 1.3 set the aliyun sources
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 1.3.0.0 . set the aliyun sources '
sudo cat > /etc/apt/sources.list <<EOF
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
EOF ## . update apt-get
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 2.0.0.0 . sudo apt-get update'
sudo apt-get update
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 2.0.0.0 . sudo apt-get upgrade'
sudo apt-get upgrade -y ## . install nautilus-admin
# 该扩展名仅添加管理员权限以打开文件夹或编辑文件,
# 没有“以管理员身份运行”选项以超级用户权限运行程序
#echo $(date '+%Y-%m-%d %H:%M:%S') '>> 3.0.0.0 . install nautilus-admin'
sudo apt install nautilus-admin & nautilus -q #echo $(date '+%Y-%m-%d %H:%M:%S') '>> 3.1.0.0 . add new document to mouse right'
sudo touch ~/Templates/'new document' ## . install snap
## echo $(date '+%Y-%m-%d %H:%M:%S') '>> 3.0.0.0 . install snap'
# sudo apt-get install snap
# sudo snap install snap-store
# sudo snap install snap-store-proxy
# sudo snap install snap-store-proxy-client ## . install chrome browser
## echo $(date '+%Y-%m-%d %H:%M:%S') '>> 4.0.0.0 . install chromium browser'
## echo $(date '+%Y-%m-%d %H:%M:%S') '>> 4.1.0.0 . get goole chrome deb file'
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O google-chrome-stable_current_amd64.deb
## echo $(date '+%Y-%m-%d %H:%M:%S') '>> 4.2.0.0 . install google chrome deb file'
# sudo apt install ./google-chrome-stable_current_amd64.deb
## echo $(date '+%Y-%m-%d %H:%M:%S') '>> 4.3.0.0 . remove google chrome deb file'
# sudo rm -f ./google-chrome-stable_current_amd64.deb ## install chinese method
# echo $(date '+%Y-%m-%d %H:%M:%S') '>> 5.0.0.0 . install chinese method' # 5.1 install input method fcitx,
# echo $(date '+%Y-%m-%d %H:%M:%S') '>> 5.1.0.0 . install input method fcitx' # sudo apt install fcitx-bin
# sudo apt-get install fcitx-table
# 5.2 and set the default input method to fcitx
# echo $(date '+%Y-%m-%d %H:%M:%S') '>> 5.2.0.0 . im-config -n fcitx'
# im-config -n fcitx ## install Deepin Software
echo $(date '+%Y-%m-%d %H:%M:%S') '>> 6.2.0.0 . install deepin-screenshot'
# sudo apt install -y deepin-screenshot
# echo $(date '+%Y-%m-%d %H:%M:%S') '>> 6.3.0.0 . install deepin-terminal'
# sudo apt install deepin-terminal
# echo $(date '+%Y-%m-%d %H:%M:%S') '>> 6.3.1.0 . set default terminal to deepin-terminal'
# gsettings set org.gnome.desktop.default-applications.terminal exec deepin-terminal
# gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal ## install microsoft software # echo $(date '+%Y-%m-%d %H:%M:%S') '>> 8.1.0.0 . install dotnet-sdk-3.1'
# wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# sudo dpkg -i packages-microsoft-prod.deb # sudo apt-get update; \
# sudo apt-get install -y apt-transport-https && \
# sudo apt-get update && \
# sudo apt-get install -y dotnet-sdk-3.1 ## install Java JDK sudo apt-get install -y openjdk--jre-headless ## install git
sudo apt-get install -y git ## install nodejs
# config hosts :203.74.140.139 deb.nodesource.com
# sudo apt install -y curl
# curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
# sudo apt-get install -y nodejs ## install JetBrans Software
#echo $(date '+%Y-%m-%d %H:%M:%S') '>> 7.0.0.0 . install jetbrans rider'
#sudo snap install rider --classic #echo $(date '+%Y-%m-%d %H:%M:%S') '>> 7.0.0.0 . install jetbrans datagrip'
#sudo snap install datagrip --classic ## install typora
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
# wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
# sudo add-apt-repository 'deb https://typora.io/linux ./'
# sudo apt update
# install typora
# sudo apt install typora ## install RabbitMQ
# echo $(date '+%Y-%m-%d %H:%M:%S') '>> 11.0.0.0 . install install erlang'
# sudo apt-get install erlang-nox
# sudo apt-get install rabbitmq-server
# sudo rabbitmqctl add_user admin admin
# sudo rabbitmqctl set_user_tags admin administrator
# sudo rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'
# sudo rabbitmq-plugins enable rabbitmq_management
# http://localhost:15672/ ## install Radis
# sudo apt install redis-server
# sudo systemctl enable redis-server.service ## install TeamViewer
# wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
# sudo dpkg -i teamviewer_amd64.deb ## install 7zip
sudo apt-get install -y p7zip-full ## install synaptic software managerment
# sudo apt-get install synaptic ## install gufw firewall
sudo apt-get install -y gufw ## install onedrive
#. ##################################################
# sudo apt update
# sudo apt install -y onedrive
################################################### #. ##################################################
# sudo apt install -y make
# sudo apt install libcurl4-openssl-dev
# sudo apt install libsqlite3-dev # sudo snap install --classic dmd && sudo snap install --classic dub # cd ~
# git clone https://github.com/skilion/onedrive.git
# cd onedrive
# make
# sudo make install ## If you want to sync your files automatically, enable and start the systemd service:
# sudo systemctl --user enable onedrive
# sudo systemctl --user start onedrive
## To see the logs run:
# journalctl --user-unit onedrive -f ## uninstall onedrive
# sudo make uninstall
## delete the application state
# rm -rf .config/onedrive ################################################### #. ##################################################
# git clone https://github.com/xybu92/onedrive-d.git
# cd onedrive-d
# ./install.sh -y
# onedrive-pref
# y
# y
# n
# n
# onedrive-d start
################################################### #. ###############################################
# sudo apt install build-essential -y
# sudo apt install libcurl4-openssl-dev -y
# sudo apt install libsqlite3-dev -y
# sudo apt install git make -y
# sudo curl -fsS https://dlang.org/install.sh | bash -s dmd # git clone https://github.com/abraunegg/onedrive.git # cd ~/Work/Git/onedrive
# ./configure
# make clean
# make
# ls
# ./onedrive
# ./onedrive --synchronize
################################################### ## install electron
## login as root account # export ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
# export ELECTRON_CUSTOM_DIR=/9.2. ## edit ~/.bashrc with current account
# sudo vim ~/.bashrc
# export PATH=$PATH:~/.npm-global/bin
## active ~/.bashrc
# source ~/.bashrc # npm install -g cnpm --registry=https://registry.npm.taobao.org # cnpm install -g electron ## install wine # sudo dpkg --add-architecture i386
# wget https://dl.winehq.org/wine-builds/winehq.key
# sudo apt-key add winehq.key
# sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ # sudo apt-get install --install-recommends winehq-stable
# sudo apt --fix-broken install
## ## install Microsoft font ## install WPS--SNAP
# sudo snap install wps--snap ## install redis-desktop-manager
# sudo snap install redis-desktop-manager ## install openssh-server
sudo apt-get install -y openssh-server ## install notepad-plus-plus
sudo snap install notepad-plus-plus ## install lldb : anlysis core dump file with .Net Core 3.0 # plugin load /usr/share/dotnet/shared/Microsoft.NETCore.App/3.1./libsosplugin.so
# plugin load /usr/share/dotnet/shared/Microsoft.NETCore.App/3.1./libmscordaccore.so
# sudo apt-cache madison lldb
# sudo apt-get install lldb=:10.0-~exp1
# sudo apt-cache madison lldb ENDTIME=$(date "+%Y-%m-%d %H:%M:%S")
echo $ENDTIME ">> 结束相关安装、配置与检查..."
start_seconds=$(date --date="$BEGINTIME" +%s);
end_seconds=$(date --date="$ENDTIME" +%s);
echo "本次运行时间: "$((end_seconds-start_seconds))"s"
#

Ubuntu 20.04.1 安装软件和系统配置脚本的更多相关文章

  1. Ubuntu 20.04 版本安装

    Ubuntu 20.04 版本安装 安装步骤 首先创建好Ubuntu 20.04虚拟机 等待系统检查完整性 选择语言 选择不更新,回车确定 键盘语言默认即可 网卡IP配置 设置代理服务器 设置源 自定 ...

  2. Ubuntu 20.04上安装MySQL教程,ubuntu安装mysql

    在Ubuntu 20.04上安装MySQL教程 先决条件 确保您以具有sudo特权的用户身份登录. 在Ubuntu上安装MySQL 在撰写本文时,Ubuntu存储库中可用的MySQL的最新版本是MyS ...

  3. ubuntu 20.04 编译安装 p 详解

    事情的起因 实验需要安装 p4 环境 我考虑到我自己的电脑性能不足,因此打算在本机安装 github上官方仓库的安装教程老旧,都是在 ubuntu14.04或者ubuntu16.04 我长时间用的li ...

  4. Ubuntu 20.04 Docker 安装并配置

    前言 Docker 的使用能极大地方便我们的开发,减少环境搭建,依赖安装等繁琐且容易出错的问题. 安装 Docker Ubuntu 20.04 官方 apt 源中就有 Docker,我们可以直接通过 ...

  5. Ubuntu 20.04 手动安装 sublime_text 并建立搜索栏图标(解决 Ubuntu 20.04 桌面图标无法双击打开问题)

    下载sublime_text_3离线程序包 wget https://download.sublimetext.com/sublime_text_3_build_3211_x64.tar.bz2 #x ...

  6. VirtualBox 安装 Ubuntu 20.04 全流程

    VirtualBox 安装 Ubuntu 20.04 全流程 内容概要 这个作业属于哪个课程 2022面向对象程序设计 这个作业要求在哪里 2022面向对象程序设计寒假作业1 这个作业的目标 在虚拟机 ...

  7. Ubuntu 20.04上通过Wine 安装微信

    没有想过会在一个手机软件上花这么多心思,好在今天总算安装成功,觉得可以记录下这个过程,方便他人方便自己. 首先介绍下我使用过的其他方法,希望可以节省大家一些时间: Rambox Pro:因为原理是网页 ...

  8. Pangolin 安装测试 Installation & Examination (Ubuntu 20.04)

    Pangolin 安装测试 Installation & Examination (Ubuntu 20.04) 如题所述,这是一个比较轻松的 Pangolin 安装配置方法,同样是基于 WSL ...

  9. Ubuntu 20.04安装Docker

    Docker学习系列文章 入门必备:十本你不容错过的Docker入门到精通书籍推荐 day1.全面的Docker快速入门教程 day2.CentOS 8.4安装Docker day3.Windows1 ...

随机推荐

  1. 程序员面试:C/C++求职者必备 20 道面试题,一道试题一份信心!

    面试真是痛并快乐的一件事,痛在被虐的体无完肤,快乐在可以短时间内积累很多问题,加速学习. 在我们准备面试的时候,遇到的面试题有难有易,不能因为容易,我们就轻视,更不能因为难,我们就放弃.我们面对高薪就 ...

  2. Python爬取10000条“爆款剧”——《三十而已》热评,并做可视化

    前言 继<隐秘的角落>后,又一部“爆款剧”——<三十而已>获得了口碑收视双丰收,王漫妮.顾佳.钟晓芹三个女主角的故事线频频登上微博热搜.该剧于2020年7月17日在东方卫视首播 ...

  3. 重学c#系列——异常续[异常注意事项](七)

    前言 对上节异常的补充,也可以说是异常使用的注意事项. 正文 减少try catch的使用 前面提及到,如果一个方法没有实现该方法的效果,那么就应该抛出异常. 如果有约定那么可以按照约定,如果约定有歧 ...

  4. Junit4 测试代码

    Junit4 测试代码 import org.junit.Test; import org.junit.runner.RunWith; @RunWith(SpringJUnit4ClassRunner ...

  5. 解决Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jogl in java.library.path问题

    首先要把jonl.jar和gluegen.jar导入到eclipse中,然后把解压后的4个.dll文件也导入到eclipse中 具体操作: jonl文件下载地址 链接:https://pan.baid ...

  6. 【av68676164(p55-p58)】 Intel CPU和Linux内存管理

    7.4.1 Intel CPU物理结构 https://www.cnblogs.com/megachen/p/9768115.html x86实模式 实模式 20位:1M内存空间 地址表示方式:段地址 ...

  7. JavaFX桌面应用-MVC模式开发,“真香”

    使用mvc模块开发JavaFX桌面应用在JavaFX系列文章第一篇 JavaFX桌面应用开发-HelloWorld 已经提到过,这里单独整理使用mvc模式开发开发的流程. ~ JavaFX桌面应用开发 ...

  8. Prometheus Operator 教程:根据服务维度对 Prometheus 分片

    原文链接:https://fuckcloudnative.io/posts/aggregate-metrics-user-prometheus-operator/ Promtheus 本身只支持单机部 ...

  9. 2020-05-29:redis怎么保证高可用,高可用模式有那些?对比下优缺点?

    福哥答案2020-05-29: Redis 高可用架构如下:1.Redis Sentinel 集群 + 内网 DNS + 自定义脚本.2.Redis Sentinel 集群 + VIP + 自定义脚本 ...

  10. C#LeetCode刷题之#268-缺失数字(Missing Number)

    问题 该文章的最新版本已迁移至个人博客[比特飞],单击链接 https://www.byteflying.com/archives/4056 访问. 给定一个包含 0, 1, 2, ..., n 中  ...