#!/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. [转]Java 逃逸分析

    作者:栈长  公众号:Java技术栈 记得几年前有一次栈长去面试,问到了这么一个问题:Java中的对象都是在堆中分配吗?说明为什么! 当时我被问得一脸蒙逼,瞬间被秒杀得体无完肤,当时我压根就不知道他在 ...

  2. 什么是DO,DTO,VO,POJO

    俗话说,没有规矩不成方圆,今天来说一下 Java 中的各种 O(bject). 为什么会出现这些 O? 我们知道,这些 O 不管叫什么名字,其本质都还是对象(Object),既然本质都一样,为什么非要 ...

  3. SpringSceurity(6)---JWT详解

    SpringSceurity(6)---JWT详解 在JWT之前我们在做用户认证的时候,基本上会考虑session 和 token,所以在讲jwt之前,我们先来回顾下这个两个 一.传统的session ...

  4. node.js 使用----相关常用命令总结

    node.js 使用----相关常用命令总结 1. 下载并安装node.js 2. 设置全局模块存放的目录 2.1 查看默认配置 npm config ls 2.2 修改全局模块存放目录 npm co ...

  5. ios数组基本用法和排序大全

    1.创建数组 // 创建一个空的数组 NSArray *array = [NSArray array]; // 创建有1个元素的数组 array = [NSArray arrayWithObject: ...

  6. IDEA-Translation最优秀的翻译插件

    IDEA最优秀的翻译插件 效果 特性 多翻译引擎 Google翻译 有道翻译 百度翻译 多语言互译 文档翻译 语音朗读 自动选词 自动单词拆分 单词本 使用 申请有道智云翻译服务(可选): 注册有道智 ...

  7. 16、Mediator 仲裁者模式

    只有一个仲裁者 Mediator 模式 组员向仲裁者报告,仲裁者向组员下达指示,组员之间不在相互询问和相互指示. 要调整多个对象之间的关系时,就需要用到 Mediator 模式.将逻辑处理交给仲裁者执 ...

  8. axios的post请求返回状态码400

    设置拦截 axios.interceptors.request.use((config) => { if (config.method === 'post') { if (!config.isF ...

  9. Linux快速搭建C/C++开发环境

    导读:越来越多的程序员在Linux下进行C/C++的开发.本文以CentOS 7为例,教你快速搭建一个vi + gcc/g++ + Make + valgrind的开发环境. 本文字数:1500,阅读 ...

  10. JavaFX桌面应用开发-HelloWorld

    JavaFX是一个强大的图形和多媒体处理工具包集合,它允许开发者来设计.创建.测试.调试和部署富客户端程序,并且和Java一样跨平台. JavaFX比Swing好用很多,它允许开发使用FXML来设计和 ...