纯净版Ubuntu v18.04 Desktop安装以及优化

0x00新建ubuntu虚拟机

1、新建虚拟机,选择Ubuntu 64位
在这里插入图片描述
2、设置一个名称和路径
在这里插入图片描述
3、按推荐的来,如果觉着卡顿,可以安装在C盘这样SSD上面或者加大内存和处理器数量等
在这里插入图片描述
4、设置内存大小
在这里插入图片描述
5、默认NAT
在这里插入图片描述
6、创建一个虚拟磁盘
在这里插入图片描述
7、选择单个虚拟磁盘文件
在这里插入图片描述
8、这里的设备选项,移除打印机就行
在这里插入图片描述

0x01加载ubuntu18.04 Desktop镜像并安装系统

总结一些要点:1、注意server和pc两个版本,这里安装Desktop的,会了Desktop基本上服务器版本的也就会了 2、英文版方便终端 3、设置时区为中国上海

1、网上寻找镜像文件,可以从ubuntu官网,阿里云、中科大、浙大、清华等等开源镜像站找资源。注意ubuntu分为两种,一种是服务器版本,一种是个人desktop版本。需要做漏洞复现,靶场搭建,可以使用ubuntu服务器,如果是做攻击机,那就选择desktop就好。桌面版的既可以当作攻击机也可以当作服务器,但是占用的资源会打,一般在做场景开发的时候,不会去使用ubuntu桌面版本!!

阿里云镜像站https://mirrors.aliyun.com/ubuntu-releases/18.04/
南京大学镜像站https://mirrors.nju.edu.cn/ubuntu-releases/18.04/
中科大镜像站https://mirrors.ustc.edu.cn/ubuntu-releases/18.04/

先下载合适的ISO镜像版本
在这里插入图片描述

2、挂载镜像文件开始安装
在这里插入图片描述
3、选择install ubuntu,不是try测试ubuntu
在这里插入图片描述
4、因为我要安装的是一个纯净版的,不需要其他杂七杂八的,选择最小化和基础安装,之后一路确认安装
在这里插入图片描述
5、之后设置密码123,继续安装,然后开始漫长的等待
在这里插入图片描述
6、重启系统
在这里插入图片描述
7、按enter回车,输入账密即可安装完毕
在这里插入图片描述

0x02安装VMware-tools

1、选择安装VMware Tools
在这里插入图片描述
2、这里有个坑点,就是需要将加载进来的VMware tools光盘中的VMwareTools-10.3.22-15902021.tar.gz拖到桌面上才行。
在这里插入图片描述
否则chmod和chown都无法使用!
在这里插入图片描述
在这里插入图片描述
3、这里其实还有一个坑点,就是ubuntu 14.04版本终端需要按下快捷键ALT+F2,搜索:gnome-terminal才能出来!不过高版本的ubuntu就没啥事儿了,直接右键会有终端出现的。在终端中解压缩vmware-tools,再进入到解压出来的文件夹,执行可执行文件即可。别忘了sudo

tar -xvf vmware-tools-distrib
cd vmware-tools-distrib
./vmware-install.pl
在这里插入图片描述
4、随后就会出现这个界面,直接输入yes就行,再往后就一直按回车键即可
在这里插入图片描述
5、然后重启虚拟机,vmwaretools安装成功
在这里插入图片描述

0x03更换ubuntu系统源

Ubuntu配置的默认源并不是国内的服务器,下载更新软件都比较慢。就算终端写上了代理,也是非常非常慢的。

第一种方法,传统更改源列表文件

1、备份源列表

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2、打开sources.list文件

选择合适的源,替换原文件的内容,保存编辑好的文件, 以阿里云更新服务器为例(可以分别测试阿里云、清华、中科大、163源的速度,选择最快的):

#打开sources.list文件
sudo gedit /etc/apt/sources.list
编辑/etc/apt/sources.list文件, 在文件最前面添加阿里云镜像源:

阿里源:
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

3、刷新列表
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential #这个可以不用,选择性输入

4、其他源

中科大源:
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src 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-src 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-src 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-src 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-proposed main restricted universe multiverse

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

清华源:
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src 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-src 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-src 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-src 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-proposed main restricted universe multiverse
更换sources.list速度依然还是很慢就请继续往下看第二种方法。

第二种方法更换software&updates里的select best server
这种方法不需要改什么文件,直接在select best server里自动选择。

1、打开show applications,有1就选1,没有就选2。这里说一下没有1的情况:

选择software updater然后会自动更新一会儿,直接取消就好。然后在选择这里的other
在这里插入图片描述
在这里插入图片描述
2、选择右边的Select Best Server
在这里插入图片描述
3、之后就会自己开始检测,然后给我们提供一个最好的下载服务器。所以这里就提到了上面所说,为什么要把时区选择到中国上海。比如这里检测结束后选择的是阿里源。
在这里插入图片描述
4、那么接下来就要将除了选择阿里源的对勾外其他的对勾去掉。
在这里插入图片描述
5、终端刷新
apt-get update
0x04 ubuntu系统优化
1、关闭定时休眠,右上角左键点开,选择settings图标,再选择Power将其改成Never
在这里插入图片描述

2、安装必要的一些工具
apt install git
apt install vim
apt install net-tools
apt install curl
apt install proxychains
在这里插入图片描述

3、最后一步,建立快照,收工。

本文链接: https://www.cnblogs.com/jinyanshenxing/p/15789597.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值