Not sure where to put this so I put it here. Anyway, I've got a slight (slight = major) problem with Ubuntu 12.04 which is a real pain.
1) The Problem:
Ubuntu 12.04 boots normally to the log-in screen where I can select either "james" or "Guest Session". "Guest Session" works normally but it has very limited privileges and logging into my account just doesn't work. As soon as that password is entered, BAM! That screen flashes up, the one you often see when shutting down that just shows stuff like that the Apache server has started correctly or whatever and then I'm back at the log-in screen. Entering the password again results in the same loop, just without flashing that little bit of unhelpful text.
2) Why I (unintentionally) broke everything:
Well, I ssh into a VPN but when it is "destroyed" and brought back, the MAC address or something changes, I'm not 100% sure what it is. Anyway, this causes something to not match up with ~/.ssh/known_hosts which stops me from connecting due to a suspected, yet non-existent, man in the middle attack unless I delete or edit that file. So I decided to try and fix that...
3) How I (might have) caused it:
So, I attempted to set up a way for the known_hosts file to be deleted automatically every time I used the ssh command as briefly explained in the previous section of this post. Trying things out to see what works, like you do, I went into the .bashrc file in the home directory (while not root if that matters) and put ssh=rm ~/.ssh/known_hosts && ssh on the bottom line of the file, just below a line in a similar format for something to do with Eclipse. After rebooting, logging in didn't work. Simple as. See section 1 for more detail.
4) How I tried (and failed) to fix it:
I have tried fixing it using Ubuntu 14.04 which I have installed but prefer not to use due to it not being configured for my uses and not having files there and so on. Plus, 12.04 runs a bit better for some reason. Anyway, this is what I tried from within Ubuntu 14.04:
- Removing the line I had added to the .bashrc file - FAILED
- Effectively deleting .bashrc by renaming it - FAILED
- Accessing the files from a guest session left over from the plug intentionally being pulled while it was running and doing something with those files - FAILED
- Many, many reboots - FAILED
- See post 6 - SUCCESS! (thanks, Impavidus)
5) Summary:
In summary, this problem isn't urgent but I'd really like to get it sorted. The .bashrc file was edited to attempt to set a permanent alias and now everything is broken. Also, this page is really laggy with those GIFs at the side. Please fix that.
Did I miss anything? Let's hope not. However, thanks to Impavidus everything is now fine.
Bookmarks