Zynq research and development (2) - to create the Ubuntu virtual machine

Note: Due to Linux compiler Win10 subsystem 32bit embedded Linux system is too time-consuming, it decided to create a working environment 32bit Linux system using the virtual machine.

Create a virtual machine Ubuntu14.04-i386

Download Ubuntu14.04 32bit version Ubuntu image file from the official website of Ubuntu-14.04.5-Desktop-i386.iso , virtual machine software using VMware Workstation 14, or free VMware Player. Ubuntu virtual machine is allocated disk space recommended above 16G, user name and password for z. Installation long time (need to download the package).

Installed virtual machine starts again, enter the password to log z. The default virtual machine already installed VMware Tools, if not re-install VMware Tools, you can easily achieve a variety of convenient operation between the virtual machine and the host.

Replace the Ubuntu 14.04 repositories

In order to facilitate the later installation of software, software source was unable to avoid the problem of foreign access speed or slow, the proposed replacement source software. Use Ctrl + Alt + T shortcut to open the "terminal" in a terminal window type:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份原文件
sudo gedit /etc/apt/sources.list #打开文件修改,添加软件源
sudo apt-get update #更换后更新列表

Ali cloud sources:

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

或者,在软件和更新窗口选择国内站点或者最佳服务器

安装中文语言包

打开系统设置System Settings,选择Language Support安装中文语言包

将汉语(中国)移动到最上层,点击Apply System-Wide,然后重启系统

每次更改语言后登录会提示,因为很多软件对中文支持不好,建议不要更改文件夹为中文名称,保留旧的英文名称

卸载无关应用

在软件中心,卸载无关软件,系统瘦身,看起来也整洁

一些不必要预装软件删除方法

卸载libreoffices

sudo apt-get remove libreoffice-common

卸载Amazon的链接

sudo apt-get remove unity-webapps-common

卸载一些预装软件

sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku landscape-client-ui-install
sudo apt-get remove onboard deja-dup

设置系统参数

根据各自喜好,设置相关系统参数,比如取消休眠、屏保和隐私,毕竟是虚拟机不需要这些功能。

更新系统并重启。

添加功能

设置以管理员权限打开文件和文件夹的功能,执行

sudo apt install nautilus-admin

重新启动 Nautilus,执行

nautilus –q

右键支持打开终端的功能,执行

sudo apt-get install nautilus-open-terminal

其他

建议参考网络资源优化Ubuntu虚拟机。虚拟机不要拍快照,容易出现异常。

如需要扩展虚拟机根分区,首先在虚拟机设置里把扩展磁盘容量

然后在Ubuntu虚拟机里使用GParted,安装

sudo apt-get install Gparted

搜索并运行GParted,先删除linux-swap和extended,然后扩展sda1的ext4分区,最后把剩下的设置为extended和linux-swap

Guess you like

Origin blog.csdn.net/mcubbs/article/details/82532749