You are not logged in.

#1 2019-05-13 19:16:15

6c656c
Member
Registered: 2018-03-02
Posts: 18

[SOLVED] Terminal emulators not working after uninstalling zsh

Hi all,

I was messing up with my terminal emulators and without thinking much I've uninstalled zsh (pacman -Rs zsh). Guake instantly stopped working but I thought I'd be able to use xterm, which was not the case.

Now none of the terminal emulators are working. What is the fix for this?

I'm not sure if this is relevant, but I use i3wm.

I know it might be a silly question, but I really don't have a clue.

Thanks in advance.

Last edited by 6c656c (2019-05-21 18:09:12)

Offline

#2 2019-05-13 19:25:32

re4xn
Member
From: Portugal
Registered: 2019-04-29
Posts: 9

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

Can you access the TTY (e.g. Ctrl+Alt+F2)? If so, you can try to fix the issue through there.

Offline

#3 2019-05-13 19:31:22

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

re4xn wrote:

Can you access the TTY (e.g. Ctrl+Alt+F2)? If so, you can try to fix the issue through there.

It doesn't work. I thought about using the arch installed on a usb stick to try and recover the package using:

pacman -U zsh

Is this the way to go? I'm afraid of rebooting my computer in order to do this because I really don't know what will happen afterwards.

Offline

#4 2019-05-13 19:37:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

"it doesn't work" is not an error message.
Why can't you get to a TTY? And exactly how does your terminal not work?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-05-13 19:43:18

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

jasonwryan wrote:

"it doesn't work" is not an error message.
Why can't you get to a TTY? And exactly how does your terminal not work?

There are no error messages, nothing happens when I try to use the shortcut provided. I also tried to open using the typing bar (Winkey + D) and writing tty but the same thing happened.

Guake stopped working and after I closed it didn't open anymore. I tried to open xterm and terminator using the typing bar but got nothing as well.

Offline

#6 2019-05-13 19:46:24

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

Is your user set to use zsh by default?  Is your system configured to use autologin?

Offline

#7 2019-05-13 19:49:21

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

loqs wrote:

Is your user set to use zsh by default?  Is your system configured to use autologin?

I think it because that's basically why I made the silly decision of doing this (all terminal emulators were using the colors of my zsh theme). I'm not sure about autologin though.

Offline

#8 2019-05-13 19:50:58

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

Somehow I managed to open tty, only to be asked for login/password, but after trying many times (and typing both correctly) my user is not being recognized anymore. How to proceed from here?

Offline

#9 2019-05-13 19:51:51

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

When you boot the system does it boot to a display manager or a terminal or X.  If a terminal does it prompt for a login or is the shell logged in?
Edit:
login as root.  Then change the shell for the none root user with chsh.

Last edited by loqs (2019-05-13 19:53:06)

Offline

#10 2019-05-13 19:57:47

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

loqs wrote:

When you boot the system does it boot to a display manager or a terminal or X.  If a terminal does it prompt for a login or is the shell logged in?
Edit:
login as root.  Then change the shell for the none root user with chsh.

It always prompt for a login. Just tried with the root user but got same result, it’s not recognizing my password.

Offline

#11 2019-05-13 20:01:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,715

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

https://wiki.archlinux.org/index.php/Re … t_password

But, rather than changing passwords, fix the shells as described above.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2019-05-13 20:19:18

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

ewaller wrote:

https://wiki.archlinux.org/index.php/Re … t_password

But, rather than changing passwords, fix the shells as described above.

Thanks. You mean the “change the shell for the none root user with chsh“?

I’m sorry but neither the wiki nor the manual helped me trying to figure it out what he meant.

Offline

#13 2019-05-13 20:31:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,715

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

Here is what you can do.  Not generally recommended, but okay if you are careful.

In the chroot environment (or the environment where you are using bash as the init system per the article I linked), use an editor to edit /etc/passwd.
Change *nothing* except the shell for your user and/or root.  The line will look something like:

root:x:0:0:root:/root:/bin/bash

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#14 2019-05-13 20:34:14

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

Either arch-choot into the installation from the boot media or boot to rescue.target.
Then

chsh #to change shell for root
chsh username #to change shell for username

Offline

#15 2019-05-13 20:36:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,715

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

^^^ That is the recommended way.  Sometimes I prefer expediency wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#16 2019-05-13 20:41:01

6c656c
Member
Registered: 2018-03-02
Posts: 18

Re: [SOLVED] Terminal emulators not working after uninstalling zsh

ewaller wrote:

Here is what you can do.  Not generally recommended, but okay if you are careful.

In the chroot environment (or the environment where you are using bash as the init system per the article I linked), use an editor to edit /etc/passwd.
Change *nothing* except the shell for your user and/or root.  The line will look something like:

root:x:0:0:root:/root:/bin/bash

It worked! Thanks a lot y’all smile

Offline

Board footer

Powered by FluxBB