-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlubuntu20.sh
More file actions
47 lines (35 loc) · 1.85 KB
/
lubuntu20.sh
File metadata and controls
47 lines (35 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## 换源
cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat >/etc/apt/sources.list <<-EOM
#ali source
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
EOM
apt update # 刷新存储库索引
apt-get purge -y 2048-qt ark bluedevil compton featherpad info k3b kcalc LibreOffice* noblenote partitionmanager qpdfview qtpass quassel screengrab skanlite system-config-printer transmission-qt trojita usb-creator-kde vim vlc
apt-get autoremove -y
apt upgrade -y #升级所有可升级的软件包
###vmware
# # virtualbox 虚拟机工具,用来实现文件共享、文件拖放和剪贴板共享
apt install virtualbox-guest-dkms virtualbox-guest-x11 -y
apt-get clean
# # 自动挂载共享文件夹 #如果没有设置共享文件夹,好像会导致无法开机
cp /etc/fstab /etc/fstab.bak
USER="mike"
if [ -n "$1" ]; then
USER=$1
fi
TARGET=/home/$USER/Desktop/ShareWindows/
mkdir $TARGET
echo "" >>/etc/fstab
echo "# 自动挂载共享文件夹" >>/etc/fstab
echo "ShareLinux $TARGET vboxsf defaults 0 0" >>/etc/fstab
poweroff