Score:0

Fked up system partially - recovery possible?

us flag

I can not recall the exact steps that brought me here.

I tried to install xonsh but failed in the process. At one point i was without a shell because i set xonsh as deafault shell, and then sudo apt purged it. I also changed to /etc/shells (added xonsh) was able to get bash back as default shell.

In the process, i somehow fked up my user profile. It is no longer listed when logging in. According to Ubuntu 20.04 user not listed to login I checked if my user in /var/lib/AccountsService/users is listed as system user - it is. So i modified it. After every restart, it transforms to system again. Also my shell is somehow broken, VS Code says "Unable to resolve your shell environment" after each startup.

Is there any (automatic) procedure i can do to recover a working system without reinstalling?

My relevant bash history is:

bash Miniconda3-latest-Linux-x86_64.sh
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/homefolder/.zprofile
brew
gh
sudo apt install gitsome
gitsome
cd --
gitsome
conda
conda config --add channels conda-forge
conda install xonsh
xonsh
gitsome
xonsh
xosh
xonsh
xonsh
gitsome
su
xonsh
sudo apt remove gitsome
pip3 install gitsome
gitsme
gitsome
su
sudo -i
xonsh
xonsh
sudo /i
sudo -i
which xonsh
cdch
chsh
chsh
which xonsh
chsh 
ls
conda
conda remove
conda remove xonsh
conda install xonsh
xonsh
conda
conda install xonsh
xonsh
which xonsh
sudo
sudo /i
sudo -i
su
xonsh
su
sudo -i
sudo nano
cd /
ls
cd etc
nano shells
chcd
chcp
chsh
export PATH=~/miniconda3/bin:$PATH
conda --version
conda install anaconda-clean
anaconda-clean --yes
chsc
chsh
sudo chsh
test
xand
xonsh
sudo apt-remove
sudo apt remove xonsh
sudo apt purge xonsh
sudo apt autoremove
sudo apt install 
sudo apt install xonsh
xonsh
chcs
chsh
sudo chsh
sudo apt purge xonsh
xonsh where
sudo apt autoremove
sudo apt get xonsh
sudo apt-get xonsh
xonsh
sudo apt install xonsh
xonsh
xonfig web
xonsh
xonsh which
xonsh where
which xonsh
which xonsh >> /etc/shells
sudo which xonsh >> /etc/shells
sudo -i
xonfig
xonsh
sudo chsh /usr/bin/xonsh
sudo chsh
xonsh
chsh xonsh
sudo chsh
sudo
xonsh

Help is greatly appreciated.

in flag
"can not recall the exact steps" ⇢ `.bash_history` might help / `/var/lib/AccountsService/users` ⇢ don't touch this, please / "Unable to resolve your shell environment" ⇢ VS Code is being nice / "Is there any (automatic) procedure i can do" ⇢ No. Most Linux systems understand that the person at the keyboard is the one making decisions. You've decided to modify your system without paying attention to what you were doing, as your first sentence clearly states. It's time to re-install. One suggestion for the future: test your modifications in a VM if you plan on doing drastic things
Florian Schneider avatar
us flag
I did not do "drastic" stuff or "not pay attention". It is rude to say so. I ran into problems because i first installed gitsome that brings xonsh with it, but an older version. Then i installed the newer verion on top in anaconda (which probably was stupid).
Florian Schneider avatar
us flag
Probably i only fked up my user profile, is it an easy thing to mirror a user profile as in windows? (Basically copying all the stuff of user into the new users' folder)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.