-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh not starting when connecting from WSL or another Linux machine #744
Comments
I'm seeing the same behavior on my system when connecting via ssh, for both Linux and macOS. Once I've logged in, I can drop into a bash/zsh shell by running the command, but can't change the default shell since |
Can be fixed by running |
That did not work for me... |
Yes for me it also did not work as expected. I then just changed the root user shell /etc/passwd from /bin/sh to /bin/zsh and now it works until the add-on is restarted. |
Which means the add-on is broken and sadly, the maintainer keeps quiet... |
Indeed. The commit 629ed20 updated the base image to Alpine 3.20.0. In this Alpine base image there is no /bin/ash in the password file entry for the root user anymore. It has now the more common /bin/sh value. The add-on tries to change it from /bin/ash to /bin/zsh which does not work anymore. The issue is located in the Dockerfile at line 87 "&& sed -i -e "s#bin/ash#bin/zsh#" /etc/passwd" . |
How can I use this fix? |
I found that adding packages:
- shadow
init_commands:
- chsh -s /bin/zsh |
Nice fix @jcwillox I just realized that all my .zshrc personnalisation was gone after rebooting the addon... my nice prompt... |
I'm not sure if there's an official way, but my suggestion would be to put it in one of the mounted folders e.g. |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
This issue is still active. There's a workaround (#744 (comment)), but it is not resolved. |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
This issue is still active |
💯 % |
This is now resolved in 19.0.0 |
Problem/Motivation
After updating to 18.0.0, zsh starts correctly in web terminal, but when connecting from WSL or another Linux machine terminal, zsh does not start and sh starts automatically.
Expected behavior
In previous version both started with zsh
Steps to reproduce
Should be simple to reproduce. Noticed it first on production machine, replicated it in VMware environment. Installed initially with 17.3.0, was working. As soon as I updated to 18.0.0 stopped working.
Just to be sure, I've restored to 17.3.0 from backup and all works again as expected.
Proposed changes
Ideally fix.
The text was updated successfully, but these errors were encountered: