ubuntu基础操作

本文档详细介绍了在Ubuntu系统下安装VMware Tools的步骤,包括解压安装包,通过命令行进行安装,并切换软件源以提升下载速度。此外,还涉及了卸载旧版工具、安装open-vm-tools桌面版以及设置root用户的过程。
摘要由CSDN通过智能技术生成

在第2步之前咋复制粘贴呢?

 自己找到并解压

解压命令tar -xvf 

这里写图片描述

 主要就是那份.gz的安装包。
2、复制到tmp,解压

cp VMwareTools-10.1.6-5214329.tar.gz /tmp  
cd /tmp  
tar -xzvf VMwareTools-10.1.6-5214329.tar.gz  

3、安装
解压后会多出一个名为vmware-tools-distrib的文件夹,进去,执行vmware-install.pl进行安装

1. cd  vmware-tools-distrib 
2./vmware-install.pl

有提示就按回车,安装完重启就ok了。

重启就好了

//换源   下载文件

vi/etc/apt/sources.list

a”添加在光标后放


deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
 

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse


————————————————

 退出保存   ESC+:wq!

更新设置
sudo apt-get update
sudo apt-get upgrade


//win10和ub之间复(vm16)
第一步:打开Ubuntu命令终端

第二步,卸载已有的工具:sudo apt-get autoremove open-vm-tools

第三步,安装open-vm-tools-desktop:sudo apt-get install open-vm-tools-desktop

第四步,重启Ubuntu系统:reboot

sudo apt-get autoremove open-vm-tools    //卸载已有的工具
sudo apt-get install open-vm-tools        //安装工具open-vm-tools
sudo apt-get install open-vm-tools-desktop  //安装open-vm-tools-desktop
reboot       //重启Ubuntu系统

//设置root用户
首先
打开终端开启root账户 :sudo passwd -u root
输入当前用户的密码(就是你设置自己账户的密码)

然后
为root账户设置密码:sudo passwd root
设置root密码,输入两次

再然后
测试root账户: su -
输入root密码,进入root终端

再然后
root账户开启成功 ,退出root账户 exit
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值