记录我的一些生活写照、无聊的牢骚、内心世界的活动 注册 | 登陆

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 目录,可以按照需求修改。
其他版本Docker:
X86版本:
XML/HTML代码
  1. docker run -d --name ubuntu \
  2.     --dns=223.5.5.5 -u=0:0 \
  3.     -v=/mnt:/mnt:rslave \
  4.     --shm-size=512m \
  5.     -p 6901:6901 \
  6.     -e VNC_PW=password \
  7.     -e VNC_USE_HTTP=1 \
  8.     --restart unless-stopped \
  9.     linkease/desktop-ubuntu-full-amd64
http://ip:6901  用户名:kasm_user  密码:password
全量版本或者标准版本,二选一。
全量版本:(包含WPS、中文输入法等,镜像3.5G左右。)
docker pull linkease/desktop-ubuntu-full-arm64:latest
标准版本:(单纯的系统,镜像1.6G左右。)
docker pull linkease/desktop-ubuntu-standard-arm64:latest
根据自己的设备选择合适平台,其他参数自行修改。
其他远程Linux桌面容器:
Dockerhub:https://hub.docker.com/u/kasmweb
alpine-desktop:https://hub.docker.com/r/kasmweb/alpine-317-desktop
XML/HTML代码
  1. docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/alpine-317-desktop:1.13.0
XML/HTML代码
  1. run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/kali-rolling-desktop:1.13.0
chromium:https://hub.docker.com/r/kasmweb/chromium
XML/HTML代码
  1. docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/chromium:1.13.0
https://IP_OF_SERVER:6901
User : kasm_user   Password: password
其他的各个版本的Linux桌面均有,需要的自行查看。
Neko--A self hosted virtual browser that runs in docker and uses WebRTC
官网:https://neko.m1k1o.net/
Github:https://github.com/m1k1o/neko
官方教程:https://neko.m1k1o.net/#/getting-started/quick-start
简单教程:https://www.nodeseek.com/post-38896-1
其他好用的Docker版云桌面
Dockerhub:https://hub.docker.com/r/infrastlabs/docker-headless

« 上一篇 | 下一篇 »

发表评论

评论内容 (必填):