#!/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. asp.net core 3.1 自定义中间件实现jwt token认证

    asp.net core 3.1 自定义中间件实现jwt token认证 话不多讲,也不知道咋讲!直接上代码 认证信息承载对象[user] /// <summary> /// 认证用户信息 ...

  2. 【NOIP2015四校联训Day7】 题 题解(Tarjan缩点+DFS)

    前言:没错,这题的名字就这么直白.我们考试题. ------------------ 你需要完成$n$道题目.有一些题目是相关的,当你做一道题的时候,如果你做过之前对它有帮助的题目,你会更容易地做出它 ...

  3. OpenCL设计优化(基于Intel FPGA SDK for OpenCL)

    1.首先了解Intel FPGA SDK for OpenCL实现OpenCL的设计组件,包括: kernels, global memory interconnect, local memory, ...

  4. Nginx的基本使用和配置

    2.1什么是Nginx Nginx 是一款高性能的 http 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器.由俄罗斯的程序设计师伊戈尔·西索夫(Igor Sysoev)所开发,官方 ...

  5. 用var声明变量,在java中居然有这么多细节,你都了解么?

    简介 Java SE 10引入了局部变量的类型推断.早先,所有的局部变量声明都要在左侧声明明确类型. 使用类型推断,一些显式类型可以替换为具有初始化值的局部变量保留类型var,这种作为局部变量类型 的 ...

  6. 畅购商城(八):微服务网关和JWT令牌

    好好学习,天天向上 本文已收录至我的Github仓库DayDayUP:github.com/RobodLee/DayDayUP,欢迎Star,更多文章请前往:目录导航 畅购商城(一):环境搭建 畅购商 ...

  7. Django记录数据库创建、更新、删除操作开源插件推荐

    github: django-simple-history - 安装 $ pip install django-simple-history - 配置 在Settings中添加 INSTALLED_A ...

  8. JavaScript map+parseInt 容易产生的误区

    map /** * 语法: * var new_array = arr.map(function callback(currentValue[,index[,array]]){ * // return ...

  9. Vue watch 深层监听

    Vue中监听某个对象的属性 为了避免监听整个对象导致效率问题,可以监听某个对象的特定属性 watch: { 'deptModel.depts': { handler(newVal, oldVal) { ...

  10. express 洋葱模型 路由管理 中间件

    express 路由管理,通过 app.express();  app.METHOD(path,fn(req, res)的方式进行路由的配置.实现了请求的接口的路由的拆分.那么可以将路由配置,分发到不 ...