danielguerra69 / ubuntu-xrdp

Docker fully implemented Multi User xrdp with xorgxrdp and pulseaudio on Ubuntu 16.04/18.04
MIT License
251 stars 141 forks source link

openbox instead of xfce #51

Closed DeAlexPesh closed 3 years ago

DeAlexPesh commented 3 years ago

Hi. Can you help me replace xfce on openbox shell. I need lite shell with chrome in kiosk mode. It be work if I make: echo "openbox-session" > /etc/skel/.Xclients

danielguerra69 commented 3 years ago

git clone and then edit the docker file. Or make a Dockerfile like this :

FROM danielguerra/ubuntu-xrdp:latest RUN echo "openbox-session" > /etc/skel/.Xclients

DeAlexPesh commented 3 years ago

Yes... I make this:

FROM danielguerra/ubuntu-xrdp:clean
RUN apt-get -y update \
 && apt-get -y purge firefox vlc adobe-flashplugin browser-plugin-.* xfce4.* \
 && apt-get -y autoremove \
 && apt-get -y autoclean \
 && apt-get -y install --no-install-recommends chromium-browser openbox \
 && rm -rf /var/cache/apt /var/lib/apt/lists \
 && echo "openbox-session" > /etc/skel/.Xclients

but have black screen with openbox menu. Help me please with chrome kiosk mode for all added user

danielguerra69 commented 3 years ago

Normal for openbox to have a black screen, use youre right mouse button ...

DeAlexPesh commented 3 years ago

RMB show menu, but no open web-browser(

danielguerra69 commented 3 years ago

Add youre own menu, check this ... https://github.com/danielguerra69/soulseek/tree/master/openbox

DeAlexPesh commented 3 years ago

Can I make autostart chromium kiosk by start user session?

nano /etc/xdg/openbox/autostart
# Disable any form of screen saver
xset s off
# Disable screen blanking
xset s noblank
# Disable power management
xset -dpms
# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp
setxkbmap -option startx:alt_x
# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --disable-infobars --kiosk 'http://localhost:5000/'

does not give a result

danielguerra69 commented 3 years ago

Bit off topic, but this is how to start chromium : chromium-browser --no-sandbox --disable-gpu

DeAlexPesh commented 3 years ago

I understand that. I do not understand where to register it for startup

danielguerra69 commented 3 years ago

in .Xclients as I said before

DeAlexPesh commented 3 years ago

I make open chrome from menu, but /etc/xdg/openbox/autostart no work( how make it work on start session?

danielguerra69 commented 3 years ago

Read the openbox manual