Ubuntu20.04问题解决【待更新】
Ubuntu20.04在Ubuntu图像化界面自由拖动文件
sudo nautilus
在弹出来的文件管理器中操作即可!!!
Ubuntu20.04发现共享文件夹进不去也不显示了
查看共享文件夹是否已经存在并且设置为总是开启
如果都是开启了的
使用命令:vmware-hgfsclien,查看当前挂载的共享文件夹
如果存在
使用以下命令
sudo apt-get install open-vm-tools-dkms
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=1000 -o gid=1000 -o umask=022
但是重启虚拟机还是会失效,永久办法
sudo vim /etc/fstab
//在最后添加一行:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
Ubuntu20.04安装交叉工具链
首先在普通用户下:解压交叉工具链的压缩包
我的解压文件放在/opt/FriendlyARM/toolschain/gcc-4.6.4
sudo /etc/environment
source /etc/environment
sudo gedit ~/.bashrc
//在最后添加
export PATH=$PATH:/opt/FriendlyARM/toolschain/gcc-4.6.4/bin/
source ~/.bashrc
然后再root用户下,sudo -s进入
gedit ~/.bashrc
//在最后添加
export PATH=$PATH:/opt/FriendlyARM/toolschain/gcc-4.6.4/bin/
source ~/.bashrc
gedit /etc/profile
//在最后添加
export PATH=$PATH:/opt/FriendlyARM/toolschain/gcc-4.6.4/bin
source /etc/profile
然后reboot,重启Ubuntu20.04
Ubuntu20.04修改时间,匹配实际时间
输入sudo dpkg-reconfigure tzdata
然后找到Asia,按左右键确认,然后找到shanghai,按左右键确认即可
输入timedatectl
查看当前时间
VMware虚拟机安装ubuntu20.04与Windows不能相互复制与粘贴
实现文本相互复制与粘贴的方法如下:
懒狗一枚,知道可以用共享,但是还是很不方便
sudo apt-get autoremove open-vm-tools
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop
reboot
Ubuntu20.04换源
首先备份原来的源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
然后修改源文件
sudo gedit /etc/apt/sources.list
改成阿里云,内容如下:
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse focal
再输入命令更新源,要点时间
sudo apt-get update
最后输入命令更新一下软件即可
sudo apt-get upgrade