Ubuntu PE based on pure GTK3 for CDROM/USB/PC(LiveCD)

Ubuntu PE based on pure GTK3 for CDROM/USB/PC(LiveCD)

 
Ubuntu LiveCD 精简安装与Docker的安装
Github:https://github.com/ghostplant/ubuntu-pe
 
Ubuntu PE for CDROM/USB:
Ubuntu 22.04 LTS Live PE, with UEFI Class3 + Secure Boot (LANG = en_US | zh_CN, ~506MB):
Ubuntu 20.04 LTS Live PE (LANG = en_US | zh_CN, ~585MB):
Ubuntu 18.04 LTS Live PE (LANG = en_US | zh_CN, ~497MB, No WimTool Support):
Ubuntu 16.04 LTS Live PE (LANG = en_US | zh_CN, ~381MB, No WimTool Support):
Ubuntu 22.04 LTS Live PE Terminal Core (LANG = en_US, ~145MB):
1. Write Ubuntu PE ISO to USB:
XML/HTML代码
  1. sudo dd if=./focal-mate-x86_64-xxxxxxxx.iso of=/dev/<usb-dev-file> bs=16K && sync  
2. Ubuntu PE Supported Features (Only for Ubuntu 20.04, 22.04 and future versions):
   1. Support Booting USB/CDROM in both MBR & UEFI machines;
   2. Support Installing Ubuntu Image to Hard Drive: sudo ubi-lite
   3. Support Installing Windows Image to MBR Hard Drive: sudo wiminstall.mbrboot /dev/<os-part-name> <WIM file> <image-id>
XML/HTML代码
  1. ex-1: sudo wiminstall.mbrboot /dev/sda1 ./xp-sp3.wim  
  2. ex-2: sudo wiminstall.mbrboot /dev/sda1 ./windows-7.wim 4  
  3. ex-3: sudo wiminstall.mbrboot /dev/sda1 ./windows-11.wim 1  
  4. [Method-2: Not Erase Grub in Hard drive, but need three-step manual configuration on boot settings]  
  5. step-1: Ensure Ubuntu + Grub has been installed on hard driver partitions other than /dev/sda1  
  6. step-2: sudo wiminstall /dev/sda1 ./xp-sp3.wim  
  7. step-3: Reboot, login Ubuntu and run: sudo update-grub  
  8. [Method-3: For UEFI Installation to GPT Hard Drive]  
  9. sudo EFI=/dev/<efi-part-name> wiminstall.gptboot /dev/<os-part-name> <WIM file> <image-id>  
Ubuntu PE Desktop for Remote Internet:
(Default VNC password: 123456, and you can update it via 'vncpasswd' command inside VNC X session)
Docker运行Ubuntu PE:
XML/HTML代码
  1. # Download/Update latest Ubuntu image  
  2. docker pull ghostplant/flashback  
  3. # Boot Service: Using web browser to login - http://localhost:8443/  
  4. docker run -it --rm -p 8443:8443 -v /external:/root ghostplant/flashback  
  5. # Other Example 1 - Language: Set locale to en_US.UTF-8  
  6. docker run -it --rm -e LANG=en_US.UTF-8 -p 8443:8443 -p 5901:5901 -v /external:/root ghostplant/flashback  
  7. # Other Example 2 - Resolution Size : Set display resolution to 1366x768  
  8. docker run -it --rm -e GEOMETRY=1366x768 -p 8443:8443 -p 5901:5901 -v /external:/root ghostplant/flashback  
  9. # Other Example 3 - Initial Password: Set initial VNC password (length of password must be between 6 to 8).  
  10. docker run -it --rm -e INIT_PASS=123456 -p 8443:8443 -p 5901:5901 -v /external:/root ghostplant/flashback  
  11. # Other Example 4 - Resolution Quality: Using 24-bit high resolution quality (Only recommended in high-bandwidth network)  
  12. docker run -it --rm -e INIT_PASS=123456 -e DEPTH=24 -p 8443:8443 -p 5901:5901 -v /external:/root ghostplant/flashback  
Then use Firefox/Chrome to login if you expose port 8443:
XML/HTML代码
  1. HTTP: x-www-browser http://localhost:8443/  
  2. HTTPS: x-www-browser https://localhost:8443/  
Docker部署其他版本:
拉取源代码:
XML/HTML代码
  1. git clone https://github.com/ghostplant/ubuntu-pe.git  
  2. cd ubuntu-pe  
部署不同版本Docker容器:
XML/HTML代码
  1. focal:  
  2. docker build -t ghostplant/flashback -f Dockerfile.2004 --network=host .  
  3. docker run -it --rm -p 8443:8443 -p 5901:5901 -e GEOMETRY=1024x768 -v /external:/root ghostplant/flashback || true  
  4. bionic:  
  5. docker build -t ghostplant/flashback -f Dockerfile.1804 --network=host .  
  6. docker run -it --rm -p 8443:8443 -p 5901:5901 -e GEOMETRY=1024x768 -v /external:/root ghostplant/flashback || true  
  7. xenial:  
  8. docker build -t ghostplant/flashback -f Dockerfile.1604 --network=host .  
  9. docker run -it --rm -p 8443:8443 -p 5901:5901 -e GEOMETRY=1024x768 -v /external:/root ghostplant/flashback || true  
根据需求修改密码和分辨率,默认系统root目录映射在本机 /external 目录,可以按照需求修改。

上一篇: 两台Esxi主机中数据迁移的方法
下一篇: EasyNode--一个简易的个人Linux服务器管理面板

访客评论
目前还没有人评论,您发表点看法?
发表评论

评论内容 (必填):