温馨提示:本教程需要先准备一个至少2G大小,并可用于格式化的存储设备
VSESION_NAME=18.04.3
FILE_NAME=ubuntu-${VSESION_NAME}-desktop-amd64.iso
BASE_LINK=https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/${VSESION_NAME}
wget ${BASE_LINK}/${FILE_NAME}
sudo apt install usb-creator-gtk
sudo fdisk -l | grep "Disk.*" | grep -v /dev/loop
# 命令运行完成后,会输出与以下类似的信息
# Disk /dev/sdb: * GiB, * bytes, * sectors
# 其中/dev/sdb就是存储设备所在路径
sudo fdisk {存储设备所在路径}
# 执行命令后,重复输入d,直到分区全部删除后,输入w保存并退出
sudo dd if={系统映像所在路径} of={存储设备所在路径}
# 耐心等待,直到命令结束后,安全弹出设备即可
sudo dpkg --purge libreoffice
sudo dpkg --purge rhythmbox
sudo dpkg --purge thunderbird
sudo dpkg --purge unity-webapps-common
# 是否卸载火狐浏览器看个人爱好,卸载前要确保有其他可用浏览器
# ssudo dpkg --purge firefox
# 在进行这一步前,最好先把软件站点改为国内服务器
sudo apt update && sudo apt upgrade -y
sudo apt install software-properties-common
sudo apt install apache2
sudo gedit /etc/apache2/apache2.conf
#找到 并删除内部的Indexes可以删除目录浏览功能
VSESION_NAME=0.8.13-1
FILE_NAME=mysql-apt-config_${VSESION_NAME}_all.deb
wget https://dev.mysql.com/get/${FILE_NAME}
sudo dpkg -i ${FILE_NAME} && rm ${FILE_NAME}
# 在打开的界面中,选择MySQL Server & Cluster (Currently selected: mysql-8.0),然后按方向键OK即可
sudo apt update && sudo apt install mysql-server
# 在打开的界面中,设置你的数据库密码,其他选项默认即可
# 如果之前安装过mysql-5.7,最后要更新数据库方能正常使用“mysql_upgrade --force”
sudo add-apt-repository ppa:ondrej/php
sudo apt update && sudo apt upgrade
sudo apt install php7.3 php7.3-mysql php7.3-xml php7.3-json
sudo gedit /etc/php/7.3/apache2/php.ini
#修改"upload_max_filesize"可以修改文件上传的总大小
#修改"post_max_size"可以修改POST请求内容的大小
#修改"max_file_uploads"可以修改同时上传文件的数量
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
VSESION_NAME=8.0.18
FILE_NAME=mysql-workbench-community_${VSESION_NAME}-1ubuntu18.04_amd64.deb
FILE_HASH=48ca4adc18b1c0b6d55d68d2df441eada364d3834a8b7b075725b1f7d8ffe57d
wget https://dev.mysql.com/get/Downloads/MySQLGUITools/${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
sudo dpkg -i ${FILE_NAME}
sudo apt -f install
rm ${FILE_NAME}
else
echo "File error, please run this script again!"
rm ${FILE_NAME}
fi
VSESION_NAME=2020.1.2
FILE_NAME=ideaIU-${VSESION_NAME}.tar.gz
FILE_HASH=183d9f1c01122b3cc6ec1c0ae4367f519f48c4314a23c5e46edf18cff8977af4
wget https://download.jetbrains.com/idea/${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
tar -zxvf ${FILE_NAME} && rm ${FILE_NAME}
mkdir -p JetBrains
mv ideaIU* JetBrains/IntelliJ
JetBrains/IntelliJ/bin/idea.sh
else
echo "File error, please run this script again!"
rm ${FILE_NAME}
fi
VSESION_NAME=2020.1.2
FILE_NAME=PhpStorm-${VSESION_NAME}.tar.gz
FILE_HASH=643b82973ca71ba7eefe199b0857a0fbc1465e6199b4f4d2364516112edd8801
wget https://download.jetbrains.com/webide/${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
tar -zxvf ${FILE_NAME} && rm ${FILE_NAME}
mkdir -p JetBrains
mv PhpStorm* JetBrains/PhpStorm
JetBrains/PhpStorm/bin/phpstorm.sh
else
echo "File error, please run this script again!"
rm ${FILE_NAME}
fi
VSESION_NAME=2020.1.2
FILE_NAME=pycharm-professional-${VSESION_NAME}.tar.gz
FILE_HASH=65086f44008b55596ab2b4c13b6c75a690472cad698d924a343316bb300052fb
wget https://download.jetbrains.com/python/${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
tar -zxvf ${FILE_NAME} && rm ${FILE_NAME}
mkdir -p JetBrains
mv pycharm* JetBrains/PyCharm
JetBrains/PyCharm/bin/pycharm.sh
else
echo "File error, please run this script again!"
rm ${FILE_NAME}
fi
VSESION_NAME=2020.1.2
FILE_NAME=CLion-${VSESION_NAME}.tar.gz
FILE_HASH=c7d52c5059883c71d3db1271e82f513d0a3d1054efb69cd7d1f3e99ac1b2ab60
wget https://download.jetbrains.com/cpp/${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
tar -zxvf ${FILE_NAME} && rm ${FILE_NAME}
mkdir -p JetBrains
mv clion* JetBrains/CLion
JetBrains/CLion/bin/clion.sh
else
echo "File error, please run this script again!"
rm ${FILE_NAME}
fi
VSESION_NAME=4.0.0.16
FILE_NAME=android-studio-ide-193.6514223-linux.tar.gz
FILE_HASH=70c04dc542281c015a700fad73d7d62ce9dace774bc12050cad9f1d6363112eb
wget https://dl.google.com/dl/android/studio/ide-zips/${VSESION_NAME}/${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
tar -zxvf ${FILE_NAME} && rm ${FILE_NAME}
mv android-studio AndroidStudio
AndroidStudio/bin/studio.sh
else
echo "File error, please run this script again!"
rm ${FILE_NAME}
fi
FILE_NAME=VMware-Workstation-Full-15.5.2-15785246.x86_64.bundle
FILE_HASH=d3a1358dad46ba0d52f25b5b721b6fa7a9f57b47eb82e972607e53e3c6733967
wget https://www.vmware.com/go/getworkstation-linux -U "Mozilla" -O ${FILE_NAME}
FILE_CALC_HASH=$(sha256sum ${FILE_NAME} | awk '{print $1}')
if [ $FILE_CALC_HASH == $FILE_HASH ];then
sudo chmod +x ${FILE_NAME}
sudo ./${FILE_NAME}
else
echo "The software may have a new version, please check!"
rm ${FILE_NAME}
fi
# 卸载命令为:sudo vmware-installer -u vmware-workstation
以下是目前可以使用的许可证密钥
ZC10K-8EF57-084QZ-VXYXE-ZF2XF
UF71K-2TW5J-M88QZ-8WMNT-WKUY4
AZ7MK-44Y1J-H819Z-WMYNC-N7ATF
CU702-DRD1M-H89GP-JFW5E-YL8X6
YY5EA-00XDJ-480RP-35QQV-XY8F6
VA510-23F57-M85PY-7FN7C-MCRG0
sudo apt remove docker docker-engine docker.io containerd runc
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# 下面这段要分开执行
DOCKER_LINK=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu
# DOCKER_LINK=https://download.docker.com/linux/ubuntu # Docker官网下载地址
curl -fsSL ${DOCKER_LINK}/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] ${DOCKER_LINK} $(lsb_release -cs) stable"
sudo apt update && sudo apt -y install docker-ce docker-ce-cli containerd.io
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt install deluge deluged
sudo apt-get install ffmpeg
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update && sudo apt install obs-studio
sudo apt install vino #针对服务端
sudo apt install vinagre #针对客户端
sudo apt install samba
rsync -avz --rsh=ssh {原始路径} {目标路径}
rsync -avz --rsh=ssh {本地路径} {用户名}@{IP或域名}:{服务器路径}
rsync -avz --rsh=ssh {用户名}@{IP或域名}:{服务器路径} {本地路径}
fsck {磁盘路径}
sudo ntfsfix {磁盘路径}