Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can’t login after uninstalling i3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ceramide
n00b
n00b


Joined: 27 Jun 2022
Posts: 11

PostPosted: Tue Jun 28, 2022 8:13 pm    Post subject: [SOLVED] Can’t login after uninstalling i3 Reply with quote

I uninstalled i3-gaps with: “emerge --deselect x11-wm/i3-gaps”, “emerge --pretend --depclean” and “emerge --ask --depclean”. I then rebooted and now can’t login. When I try to login as user, it says I don’t have access to ~/.bashrc, screen goes black for a second and it brings me back to the login screen. When I try to login as root, the same thing happens except it says that ~/.bashrc doesn’t exist. Basically, I’m stuck at login prompt. I assume I have no WM or DE. I was going to emerge OpenBox after the reboot.

Pictures:
(when login as user): https://ibb.co/HN2XcP9
(when login as root): https://ibb.co/Y7PGCq4

Unfortunately I didn’t set my language to English yet, sorry about that. And sorry for being an ultranoob!

What should I do?


Last edited by ceramide on Tue Jun 28, 2022 10:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Tue Jun 28, 2022 8:42 pm    Post subject: Reply with quote

ceramide,

It looks like every time you try to log in, it runs Xorg.
Xorg finds nothing to do (because you removed it) and exits.

Boot your install media and get into the chroot.
Disable whatever is auto starting Xorg/Login Manager/Desktop, so Xorg is not run.

Its also possible that your console keymap is not what you are expecting.
Check and fix that. The default is the "us" keymap.
Did you choose passwords that can be entered with a USA keymap?

The console and GUI keymaps are set separately.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ceramide
n00b
n00b


Joined: 27 Jun 2022
Posts: 11

PostPosted: Tue Jun 28, 2022 9:01 pm    Post subject: Reply with quote

Thanks for the response. I remember that I edited ~/.bash_profile to startx for me automatically, so I will remove that until I have OpenBox.

I’m in the livecd now. Sorry, but how do I chroot? Should I do the following commands:

Code:
 # Create mounting directories
mkdir /mnt/gentoo
cd /mnt/gentoo
 
# Enter root
sudo -i
 
# Activate swap
swapon /dev/sda2
 
# Mount partitions
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
 
# Copy netowrk information so we can use the net inside chroot
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
 
# Chroot into system
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"


… (and then just fix my ~/.bash_profile)?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Tue Jun 28, 2022 9:10 pm    Post subject: Reply with quote

ceramide,

Cheat. There is no need to be in the chroot for what you need to do.

Code:
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo

now you can edit
/mnt/gentoo/root/.bash_profile and similarly for /mnt/gentoo/home/<user_name>/.bash_profile

How you check the console keymap depends on which init system you use.
For openrc, its at /mnt/gentoo//etc/conf.d/keymaps

You need to get into the chroot if you want to change the password though.
I use dvorak-uk normally and I have to hunt round for a normal UK keyboard from time to time :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ceramide
n00b
n00b


Joined: 27 Jun 2022
Posts: 11

PostPosted: Tue Jun 28, 2022 10:08 pm    Post subject: Reply with quote

Solved! Thank you. The above commands did the trick. And thank you for the keymap advice. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum