Ubuntu 20.04.1 安装软件和系统配置脚本
#!/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 安装软件和系统配置脚本的更多相关文章
- Ubuntu 20.04 版本安装
Ubuntu 20.04 版本安装 安装步骤 首先创建好Ubuntu 20.04虚拟机 等待系统检查完整性 选择语言 选择不更新,回车确定 键盘语言默认即可 网卡IP配置 设置代理服务器 设置源 自定 ...
- Ubuntu 20.04上安装MySQL教程,ubuntu安装mysql
在Ubuntu 20.04上安装MySQL教程 先决条件 确保您以具有sudo特权的用户身份登录. 在Ubuntu上安装MySQL 在撰写本文时,Ubuntu存储库中可用的MySQL的最新版本是MyS ...
- ubuntu 20.04 编译安装 p 详解
事情的起因 实验需要安装 p4 环境 我考虑到我自己的电脑性能不足,因此打算在本机安装 github上官方仓库的安装教程老旧,都是在 ubuntu14.04或者ubuntu16.04 我长时间用的li ...
- Ubuntu 20.04 Docker 安装并配置
前言 Docker 的使用能极大地方便我们的开发,减少环境搭建,依赖安装等繁琐且容易出错的问题. 安装 Docker Ubuntu 20.04 官方 apt 源中就有 Docker,我们可以直接通过 ...
- 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 ...
- VirtualBox 安装 Ubuntu 20.04 全流程
VirtualBox 安装 Ubuntu 20.04 全流程 内容概要 这个作业属于哪个课程 2022面向对象程序设计 这个作业要求在哪里 2022面向对象程序设计寒假作业1 这个作业的目标 在虚拟机 ...
- Ubuntu 20.04上通过Wine 安装微信
没有想过会在一个手机软件上花这么多心思,好在今天总算安装成功,觉得可以记录下这个过程,方便他人方便自己. 首先介绍下我使用过的其他方法,希望可以节省大家一些时间: Rambox Pro:因为原理是网页 ...
- Pangolin 安装测试 Installation & Examination (Ubuntu 20.04)
Pangolin 安装测试 Installation & Examination (Ubuntu 20.04) 如题所述,这是一个比较轻松的 Pangolin 安装配置方法,同样是基于 WSL ...
- Ubuntu 20.04安装Docker
Docker学习系列文章 入门必备:十本你不容错过的Docker入门到精通书籍推荐 day1.全面的Docker快速入门教程 day2.CentOS 8.4安装Docker day3.Windows1 ...
随机推荐
- PHP get_html_translation_table() 函数
实例 输出 htmlspecialchars 函数使用的翻译表: <?php高佣联盟 www.cgewang.comprint_r (get_html_translation_table()); ...
- C/C++编程笔记:C语言制作情侣必备《爱情电子相册》,源码解析!
今天是521,就分享一个程序员必会的——情侣回忆杀<爱情电子相册>吧!话不多说,先上思路,后接源码! 具备能力: 1.基本可视化编程 1.1 initgraph(800,600); 1.2 ...
- 2019 HL SC day10
10天都过去了 4天都在全程懵逼.. 怎么可以这么难啊 我服了 现在想起依稀只记得一些结论 什么 反演? 什么后缀自动机?什么组合数的应用?什么神仙东西 ,不过讲课人的确都是神仙.(实名羡慕. mzx ...
- 利用python进行数据分析PDF高清完整版免费下载|百度云盘|Python基础教程免费电子书
点击获取提取码:hi2j 内容简介 [名人推荐] "科学计算和数据分析社区已经等待这本书很多年了:大量具体的实践建议,以及大量综合应用方法.本书在未来几年里肯定会成为Python领域中技术计 ...
- .Net Core 实体生成器
实体生成器是什么? 实体生成器的功能就是自动将数据库中的表以及字段 转化成我们 高级编程语言中的实体类. 我们为什么要用实体生成器 在.net core开发环境下,我们可以使用efcore这个orm来 ...
- 再见HTML ! 用纯Python就能写一个漂亮的网页
我们在写一个网站或者一个网页界面的时候,需要学习很多东西,对小白来说很困难!比如我要做一个简单的网页交互: 很多人学习python,不知道从何学起.很多人学习python,掌握了基本语法过后,不知道在 ...
- SpringBoot整合Shiro自定义Redis存储
Shiro Shiro 主要分为 安全认证 和 接口授权 两个部分,其中的核心组件为 Subject. SecurityManager. Realms,公共部分 Shiro 都已经为我们封装好了,我们 ...
- 曲线生成与求交—Bezier曲线
Bezier曲线生成 法国工程师Pierre Bezier在雷诺公司使用该方法来设计汽车.一条Bezier曲线可以拟合任何数目的控制点. 公式 设\(n+1\)个控制点\(P_0,P_1--P_n\) ...
- JS学习第四天
循环语句 while(){ }: while :先判断再执行,如果while的条件结果为false,那么执行语句块中代码一句都不走 do(){ }while; do while:先执行代码块中的语 ...
- 打开终端自动source .bashrc文件
vim ~/.bash_profile在文件内部输入 if test -f .bashrc ; then source .bashrc fi 就再也不用手动source了