View Single Post
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#17
Originally Posted by kaulian View Post
Ok i found the script to setup desktop in the lxc after create by the GUI.

For me the GUI failed, to launch this script
On my Note 4 (treltexx) port, for an unknown reason, the GUI doesn't work. Therefore I do the following in command line:
  1. sudo lxc-create -t sfos-download -n <container-name>
  2. sudo lxc-start -n <container-name>
  3. Manually change the the /usr/share/sailfish-containers/guest to /usr/share/harbour-containers/scripts/guest in the /var/lib/lxc/< container name >/config
  4. sudo lxc-attach -n <container-name>
    then within the container:
    • /mnt/guest/setup_desktop.sh
    • /mnt/guest/setups/debian.sh
  5. Start 2! command lines and in one of them issue this as nemo:
    /usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
  6. In the other command-line attach the container, then:
    /mnt/guest/start_desktop 0
  7. Done.

I have created a script that runs the `/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0" &` and then enters to the container (sudo lxc-attach -n Debian) then I can just enter the comman `/mnt/guest/start_desktop 0` in there. This way you do not need 2 command line session.

Last edited by edp17; 2020-07-30 at 15:06.
 

The Following 3 Users Say Thank You to edp17 For This Useful Post: