前几天制作了一个极简linux系统,内部结构十分简单,具体如下:

因为项目需要,所以计划在这个基础上安装一个用户操作界面,但是在安装过程中发现本系统没有wget,无法进行一系列下载轻量级桌面的动作。 于是,我进行了如下操作:
(1)到https://launchpad.net/ubuntu/+cdmirrors找一个国内的镜像网站,下载一个服务器级的iso镜像文件


越早的版本,占用空间越少,所以我选择了14.04目录,进入后选择ubuntu-14.04.6-server-amd64.iso



(2)创建虚拟机,安装上述下载的iso镜像


启动,选择安装,根据实际情况选择,安装完后启动系统,输入用户名密码,进入系统:


网络OK:

(3)安装轻量级用户操作界面xfce4及其必要组件(150~400 MB)
bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xfce4 xfce4-goodies
sudo dpkg-reconfigure lightdm
sudo reboot

如下查看xfce4在系统中占用多大内存空间--XFCE4 桌面环境本身大约只占用了 60 MB 的磁盘空间。
bash
Pi777@exampleLinux:~/Desktop$ dpkg-query -W -f='${Installed-Size;10} ${Package}\n' xfce4*
31 xfce4
955 xfce4-appfinder
10276 xfce4-artwork
879 xfce4-battery-plugin
xfce4-cddrive-plugin
xfce4-cellmodem-plugin
958 xfce4-clipman
122 xfce4-clipman-plugin
568 xfce4-cpufreq-plugin
574 xfce4-cpugraph-plugin
489 xfce4-datetime-plugin
1056 xfce4-dict
521 xfce4-diskperf-plugin
658 xfce4-fsguard-plugin
449 xfce4-genmon-plugin
27 xfce4-goodies
xfce4-hdaps
xfce4-linelight-plugin
1084 xfce4-mailwatch-plugin
xfce4-mcs-manager
xfce4-mcs-plugins
xfce4-messenger-plugin
798 xfce4-mixer
xfce4-mixer-alsa
xfce4-mixer-oss
677 xfce4-mount-plugin
xfce4-mpc-plugin
606 xfce4-netload-plugin
721 xfce4-notes
390 xfce4-notes-plugin
681 xfce4-notifyd
3591 xfce4-panel
704 xfce4-places-plugin
382 xfce4-power-manager
2433 xfce4-power-manager-data
xfce4-power-manager-plugins
199 xfce4-quicklauncher-plugin
xfce4-radio-plugin
2165 xfce4-screenshooter
xfce4-screenshooter-plugin
816 xfce4-sensors-plugin
2631 xfce4-session
2630 xfce4-settings
396 xfce4-smartbookmark-plugin
470 xfce4-systemload-plugin
790 xfce4-taskmanager
2071 xfce4-terminal
484 xfce4-timer-plugin
xfce4-utils
471 xfce4-verve-plugin
xfce4-volstatus-icon
86 xfce4-volumed
467 xfce4-wavelan-plugin
3384 xfce4-weather-plugin
xfce4-xfapplet-plugin
2247 xfce4-xkb-plugin
如此算下来,server级iso+xfce4 GUI 总占用空间约等于692MB大小 ,也算是带用户操作界面的小型Linux系统了。
至此,一个带用户操作界面的精简Linux系统就制作完成了。