View Single Post
Old 08-25-2017, 02:47 AM   #25
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 87
Karma: 32020
Join Date: Mar 2017
Location: - Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by theol0403 View Post
Xfce will probably work. I have experimented with other desktop environments like lxde and it worked. This is debian not ubuntu.

Okay I installed xfce and it worked.

  1. Set up debian from attached smalldebian.ext3, matchbox-dos.zip, installdebian.txt (sh)
  2. apt-get install xfce4
  3. enter :
    Code:
    export DISPLAY=:0
    Xephyr :1 -title "L:D_N:application_ID:xephyr" -screen 1068x1448 -cc 4 -dpi 300 -nocursor &
  4. in a new shell:
    Code:
    export DISPLAY=:1
  5. Code:
    startxfce4
  6. It worked!
install.x.sh
Code:
#!/bin/sh
root=/mnt/base-us/root
img=$root.ext3
mkdir -p $root
fsck.ext3 $img
mount -o loop $img $root || exit

cat > $root/root/inst.sh << 'EOF'
apt update
apt install -f -y
apt full-upgrade -y
apt install -y locales
sed -i '/zh_CN.UTF-8/s/^#//' /etc/locale.gen
locale-gen zh_CN.UTF-8
apt install xserver-xephyr xfce4 -y
EOF
cat >> $root/etc/apt/apt.conf << 'EOF'
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::Sandbox::User root;
EOF
cat > $root/usr/local/bin/start-x-flip << 'EOF'
#!/bin/bash
export DISPLAY=:0
Xephyr :1 -title "L:A_N:application_ID:xephyr_O:R_PC:N" -screen 800x600 -cc 4 -dpi 167 -nocursor &
sleep 3
export DISPLAY=:1
startxfce4
EOF

chmod +x $root/root/inst.sh
umount $root

/mnt/us/chroot.sh root/inst.sh

mount -o loop $img $root || exit
rm $root/root/inst.sh
umount $root
Ubuntu17.04: https://www.mobileread.com/forums/sh...d.php?t=289801

Last edited by zaoqi; 08-25-2017 at 02:55 AM.
zaoqi is offline   Reply With Quote