#!/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. HTML - XHTML

    HTML - XHTML XHTML 是以 XML 格式编写的 HTML.高佣联盟 www.cgewang.com 什么是 XHTML? XHTML 指的是可扩展超文本标记语言 XHTML 与 HTM ...

  2. PHP nl_langinfo() 函数

    定义和用法 nl_langinfo() 函数返回指定的本地信息. 注释:该函数无法在 Windows 平台上工作. 提示:与返回所有本地格式化信息的 localeconv() 函数不同,nl_lang ...

  3. PHP xpath() 函数

    定义和用法 xpath() 函数运行对 XML 文档的 XPath 查询.高佣联盟 www.cgewang.com 如果成功,该函数返回 SimpleXMLElements 对象的一个数组.如果失败, ...

  4. CF EC 86 E Placing Rooks 组合数学

    LINK:Placing Rooks 丢人现场.jpg 没看到题目中的条件 放n个rook 我以为可以无限放 自闭了好半天. 其实只用放n个.那么就容易很多了. 可以发现 不管怎么放 所有列/所有行 ...

  5. 畅购商城(四):Lua、OpenResty、Canal实现广告缓存与同步

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

  6. Taurus.MVC 2.3.4 :WebAPI 文档集成测试功能升级:WebAPI批量自动化测试功能。

    前言: 最近升级了一下Taurus.MVC,现在最新版本是:Taurus.MVC 2.3.4,源码版本和nuget同步. 下面分三个步骤介绍下新版本的WebAPI批量自动化测试功能. 1.启用WebA ...

  7. Navicat Premium 安装破解

    软件官网 : https://www.navicat.com.cn/ Navicat Premium 12 下载地址:https://www.lanzous.com/i9j0syf 密码:7pup N ...

  8. 简化RESTful开发,Spring Data REST让你少掉发

    1 前言 欢迎访问南瓜慢说 www.pkslow.com获取更多精彩文章! 前言 Springboot + Spring MVC大大简化了Web应用的RESTful开发,而Spring Data RE ...

  9. NoisyStudent:

  10. html定时跳转页面

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...