linuxserver / docker-webtop

Ubuntu, Alpine, Arch, and Fedora based Webtop images, Linux in a web browser supporting popular desktop environments.
GNU General Public License v3.0
1.77k stars 175 forks source link

[BUG] default konsole profile has no command parameter #183

Closed avoiceofreason closed 7 months ago

avoiceofreason commented 10 months ago

Is there an existing issue for this?

Current Behavior

On a clean install on webtop with a clean /config volume mapping, the default konsole profile appears to have a blank command parameter. This means konsole start with this error:

"Warning: Could not find '', starting '/bin/bash' instead. Please check your profile settings."

konsole >> settings >> configure konsole >> profiles Default profile is readonly but not editable

You can add another profile and add Command: /bin/bash and set as default to workaround

Expected Behavior

konsole should start /bin/bash with no errors

Steps To Reproduce

Start webtop docker container open https://domain:3001 to access webtop

open konsole

error: "Warning: Could not find '', starting '/bin/bash' instead. Please check your profile settings."

Environment

- OS:Ubuntu 22.04.1
- How docker service was installed:

https://docs.docker.com/engine/install/ubuntu/

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo docker run hello-world

CPU architecture

x86-64

Docker creation

docker run -d \
  --name=webtop \
  --security-opt seccomp=unconfined `#optional` \
  -e CUSTOM_USER="admin" \
  -e PASSWORD="password" \
  -e PUID=1001 \
  -e PGID=1001 \
  -e UMASK=007 \
  -e TZ=Europe/London \
  -p 3000:3000 \
  -p 3001:3001 \
  -v /var/lib/docker/volume_maps/webtop/config:/config \
  -v /etc/timezone:/etc/timezone:ro \
  -v /etc/localtime:/etc/localtime:ro \
  --shm-size="3gb" \
  --device /dev/dri:/dev/dri \
  --restart unless-stopped \
  --add-host=host.docker.internal:host-gateway \
  ghcr.io/linuxserver/webtop:ubuntu-kde

Container logs

docker logs -f webtop
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1001
User GID:    1001
───────────────────────────────────────

...+......+......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+...........+...............+...+.+..+..................+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+...+.+...+..................+........+.........+.+..+.........+.+.....+..........+...+.....+....+.....+...+.......+.....+.+..+..........+..+...+....+......+..+......+.+.....+....+..+.......+...+.....+....+.........+............+.................+.+.....+.......+..+...+.......+......+.....+......+....+.....+....+..+..........+.....+.+.....+.............+..+....+...+......+............+.....+...+.+...+..+...+.............+.........+.....+.+........+.+.........+...........+..................+.+..+...+............+.........+.+..+.............+...+......+...+..+...+...+....+.....+.+...+..+...+....+...+...+...........+.........+.......+..+.+..+.............+......+.....+.+........+.+...+........+...+....+..+.........+......+.+..+.......+.....................+..+.+..+..................+...............+....+...+..+......+.....................+..................+.+......+...+.....+..........+...+...+......+...............+........+.......+.........+.....+......+.+...+..+.......+........+............+.............+.........+.....+...+.......+...+........+...............+..........+..+..........+..+...+...+....+....................+.+...+.....+............+...+...................+..+.+............+...+..+...+....+.....+....+......+........+...+....+.........+......+..............+.........+..........+...............+......+..+....+...+..+..........+.........+.........+......+...........+.+..+.+.....+.+..................+...........+......+..........+..............+....+...+.....+...+.+..............+......+......+...+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...+...+...........+.+.....+.+.....+...+............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.....+...+....+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.......+.........+.....+......+...+......+...............+......+...............+.+...+..+.........+.............+......+..+....+...+...........+.......+..+.......+........+.+..+....+...+........+..........+.....+...+..........+..+.........+.............+...+...+.....+......+..........+........+...+.........+.............+..+.+.....+...+....+..+.+..+..........+...........+............+...+....+..+.+.........+........+.+..+.........+.+........+....+..+....+...........+...+...+.......+..+....+..+.......+......+.........+......+.....+.+........+.......+...+...........+...................+...+..............+.............+.....+.+.....+.+...+..................+..+.......+...+........+...............+.......+.....+.+..+....+.....+......+...+.+...........+...+.+...+......+.....+.+.........+.........+..+...+...+...+.....................+.+..+................+......+........+.+....................+.+.....+...+.............+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
**** adding /dev/dri/renderD128 to video group _ssh with id 110 ****
**** adding /dev/dri/card0 to video group video with id 44 ****
[custom-init] No custom files found, skipping...
[ls.io-init] done.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built Oct 21 2023 22:32:38
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1001
User GID:    1001
───────────────────────────────────────

**** permissions for /dev/dri/renderD128 are good ****
**** permissions for /dev/dri/card0 are good ****
[custom-init] No custom files found, skipping...
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc KasmVNC 1.2.0 - built Oct 21 2023 22:32:38
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

[ls.io-init] done.
 2023-10-30 11:32:59,835 [INFO] websocket 0: got client connection from 127.0.0.1
 2023-10-30 11:32:59,854 [PRIO] Connections: accepted: @172.17.0.1_1698665579.836344::websocket
 2023-10-30 16:52:14,085 [PRIO] VNCSConnST: Binary clipboard data for mime text/plain not found
github-actions[bot] commented 10 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thelamer commented 10 months ago

You can pass -e SHELL=/bin/bash or set the shell in Konsole from settings > Profiles, and this kind of stuff can be set using other methods as well.

In general I try not to mess with the users home directory (/config) unless absolutely necessary given the amount of time these images have been deployed and I don't know if I would mess up someones custom settings.

avoiceofreason commented 10 months ago

Thanks. In fact the SHELL env variable is already set to /bin/bash so passing to docker wouldn't change anything (?)

On further investigation it seems that konsole profile functionality looks pretty broken. The default profile is both builtin and hardcoded. You cannot change it, delete it, or convert it to a "Default.profile" in .local/share/konsole

Only option is to create a new profile with the correct command setting and setup as default.

Would have been nice to have done that on the standard webtop release but as you say that ship has sailed.

LinuxServer-CI commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 6 months ago

This issue is locked due to inactivity