把当前ubuntu18.0.4系统做成镜像

先下载remastersys

wget ftp://ftp.gwdg.de/pub/linux/easyvdr/mirror/remastersys/ubuntu/remastersys/remastersys_3.0.4-2_all.deb
wget ftp://ftp.gwdg.de/pub/linux/easyvdr/mirror/remastersys/ubuntu/remastersys-gui/remastersys-gui_3.0.4-1_amd64.deb

安装依赖

sudo apt install syslinux-utils isolinux squashfs-tools casper libdebian-installer4 ubiquity-frontend-debconf user-setup discover
 
sudo apt install libvte-common libvte9 plymouth-x11
 
wget http://security.ubuntu.com/ubuntu/pool/universe/x/xresprobe/xresprobe_0.4.24ubuntu9_amd64.deb
sudo apt-get install dialog

安装remastersys

sudo dpkg -i remastersys_3.0.4-2_all.deb
 
sudo dpkg -i remastersys-gui_3.0.4-1_amd64.deb

错误描述

dpkg: dependency problems prevent configuration of remastersys:
 remastersys depends on xresprobe; however:
  Package xresprobe is not installed.
remastersys: Depends: xresprobe but it is not installed 
解决方法
wget http://security.ubuntu.com/ubuntu/pool/universe/x/xresprobe/xresprobe_0.4.24ubuntu9_amd64.deb

dpkg -i xresprobe_*ubuntu9_amd64.deb

 

apt-get install libvte9 -y

 

启动remastersys

sudo remastersys-gui
 
Backup:打包整个系统,包括你的个人数据和配置信息。
 
Distribution:打包一个可与朋友分享的iso文件,不包括你的个人数据和配置信息。
 
Customize: 软件设置
 
Clea WorkingFolder:清除临时文件
 
Check Log:检查remastersys.log

问题参考:
"Lightdm not setup properly. You must set your default desktop with lightdm prior to remastering"
大致为缺少默认的桌面环境

vi /etc/lightdm/lightdm.conf

添加内容

[Seat:*]
user-session=
  • DesktopName 可以如下查看
 ls -l /usr/share/xsessions/

保存后执行

chmod +x /etc/lightdm/lightdm.conf

再次进行镜像制作:

sudo remastersys backup custom.iso

 

你可能感兴趣的:(unbuntu)